The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi! I have a two part question.
I have this calulated column:
Which returns a colum that begins at 1 and goes up by 1 in each row. Friday and Saturday get the same value and Sunday gets nothing. It will reset back to 1 at each month.
Is there a way to have this go in Descending order? I need one column to go from 1-X and another to go from X-1. If I change the second column (FD2) to descending, they both change and nothing happens in the report. I hope that makes sense.
Basically looking for a column that is "days left" from the first one we just created.
Second question - In addition to filtering out for days of the week, is there a way to have the FD colum show the same value as the previous day when it hits a holiday? I have a holiday table I am just not sure how to add that filter to my existing DAX above.
February:
Wednesday 16=12FD
Thursday 17 =13FD
Friday 18= 14
Saturday 19 =14
Monday 21 (Holiday) =14
Thank you in advance!
Solved! Go to Solution.
FD2=
var _FD2 =
Hi @vapid128
I did try that earlier, however it returns a -1 for the Sunday as well when that should be blank. I think I need an IF statement in this case? I am not sure, still very new to power bi!
var _FD2 =
@vapid128
Thank you!!! It is saying that the Syntax for the return is incorrect?
Column =
var _FD2 = _______
RETURN IF(_FD2>0,_FD2-1,BLANK())
that should be no problem
FD2=
var _FD2 =
Hi @vapid128
Is there a way to have just the FD2 end in 0 instead of 1?
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
20 | |
17 | |
15 | |
13 |
User | Count |
---|---|
42 | |
36 | |
23 | |
22 | |
17 |