March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have Data like:
Date Profit% City
21mar20 33.3 Paris
15mar20 100 New york
18mar20 67 Paris
18may21 67 New york
21may21 67 Berlin
22may21 33 Berlin
16may21 21 Paris
I want to get the Date in which Profit % was the lowest City wise and it should exlcude holidays.
So if there is Profit% for a day which is satuday or sunday it should get excluded.
So here for paris ,21 % will get ignored as 16may21 is Sunday.
So Results should look like
21mar20 33.3 Paris
18may21 67 New york
22may21 33 Berlin
Solved! Go to Solution.
Hi,
Your answers are wrong - please recheck. You may download my PBI file from here.
Hope this helps.
Hi @Anonymous ,
You could create a measure as follows:
lowProfit% =
CALCULATE (
MIN ( [Profit%] ),
FILTER (
ALLEXCEPT ( 'Data', 'Data'[City] ),
WEEKDAY ( [Date], 2 ) <= 5
&& WEEKDAY ( [Date], 2 ) >= 1))
Then create a flag measure and apply it into filter:
flag =
IF (
WEEKDAY ( MAX ( [Date] ), 2 ) >= 1
&& WEEKDAY ( MAX ( [Date] ), 2 ) <= 5,
1)
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Your answers are wrong - please recheck. You may download my PBI file from here.
Hope this helps.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |