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
378 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
• 33,030 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,160 points
5,951 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 18, 2019 in Power BI by ch
• 3,450 points
1,155 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,910 points
6,402 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,130 points
1,017 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 22, 2018 in Power BI by nirvana
• 3,130 points
2,479 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,570 points
1,152 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,360 points
1,440 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
• 33,030 points
1,606 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
• 33,030 points
4,082 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP