The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi All
I have below syntax working fine :-
Hope some one can advise me.
So that my report look like below :-
Year 1 20%
Year 2 30%
Year 3 40%
ETC
Paul
Hi @admin11 ,
You may create a Year table and then use SWITCH() to match values:
Measure = SWITCH(MAX('New Table'[Value]),"Year 1", [_SLOW_1_YEAR], "Year 2",[_SLOW_2_YEAR],"Year 3", [_SLOW_3_YEAR])
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@admin11 You can use an Append query in Power Query Editor or you could use UNION in DAX.
Thank you very much for your fast reply.
Actually what i need to combine the below 2 syntax into 1 :-
@admin11 Just use a SWITCH(TRUE(), ) statement and put your IF true/false statements in as conditions, like:
_SLOW_YEAR =
SWITCH(TRUE(),
TODAY () - SELECTEDVALUE ( INVC[Last Sales] ) >1 * 365
&& SELECTEDVALUE ( INVC[Last Sales] ) <> BLANK (),1,
TODAY () - SELECTEDVALUE ( INVC[Last Sales] ) >2 * 365
&& SELECTEDVALUE ( INVC[Last Sales] ) <> BLANK (),1,
0
)
I have try , it does not work .
Below is the link my PBI file :-
https://www.dropbox.com/s/6ol6l2dfhro49sg/PBT_V2021_113.pbix?dl=0
Paul
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
182 | |
81 | |
64 | |
46 | |
38 |