Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
218 | |
88 | |
83 | |
65 | |
56 |