Measure to filter date from another field

0 votes
How to create a measure to filter date from another field? I want to use slicer to give date and the measure should show me the average sales for that month and also the day with highest sales.
May 17, 2019 in Power BI by sindhu
89 views

1 answer to this question.

0 votes
Hi,

Create a column with [date-field].[month] to fetch the months. Now add the column to the slicer to select the month.

Create a measure to fetch an average month by dropping sales in the card and converting to average to find average sales.

Create a column to check the days and return day with the highest sale

Column  = IF(Orders[Sales]=MAX(Orders[Sales]),(Orders[Order Date].[Date]),DATE(1900,1,1)).

I have given DATE(1900,1,1) as default date to all dates except highest sale day.

Now use the measure to calculate the max(column) to fetch the day with the highest sales.

Hope it helps.
answered May 17, 2019 by Cherukuri
• 32,930 points

Related Questions In Power BI

0 votes
1 answer

How to export Power Queries from One Workbook to Another with VBA?

Try solving it using the Workbook. Query ...READ MORE

answered Oct 22, 2018 in Power BI by Annie97
• 2,200 points
2,009 views
0 votes
0 answers

How to break datetime field to date field in power bi?

How to break DateTime field to date ...READ MORE

Oct 17, 2019 in Power BI by ch
• 3,450 points
666 views
0 votes
1 answer

How to ignore a slicer for one measure, but apply it on another?

In order to ignore Slicer you need ...READ MORE

answered Oct 1, 2020 in Power BI by Gitika
• 65,870 points
1,793 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,150 points
331 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 21, 2018 in Power BI by nirvana
• 3,150 points
1,468 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,550 points
446 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 52,310 points
493 views
0 votes
1 answer

Calculate age from dob field and another date value using slicer

Hi Karthick, Create a parameter with year range ...READ MORE

answered May 17, 2019 in Power BI by anonymous
• 32,930 points
737 views
0 votes
1 answer

How to add slicer from a different tables?

Hi, Join is normally performed to get ...READ MORE

answered Mar 1, 2019 in Power BI by Cherukuri
• 32,930 points
2,681 views