Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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?
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
25 | |
21 | |
19 | |
14 | |
11 |
User | Count |
---|---|
43 | |
35 | |
25 | |
22 | |
22 |