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.
Solved! Go to Solution.
Hi @Allisond
It's abit complicated to understand but looking at your SWITCH, the order of the logic needs changing. If ValidRow is True then the 2nd line (ValidRow && ThirtyDWt) will never be evaluated
Try this
Return
SWITCH(
TRUE(),
ValidRow && ThirtyDWt = BLANK(), ThirtyMin1Wt,
ValidRow, ThirtyDWt,
BLANK()
)
Regards
Phil
Proud to be a Super User!
Hi @Allisond
It's abit complicated to understand but looking at your SWITCH, the order of the logic needs changing. If ValidRow is True then the 2nd line (ValidRow && ThirtyDWt) will never be evaluated
Try this
Return
SWITCH(
TRUE(),
ValidRow && ThirtyDWt = BLANK(), ThirtyMin1Wt,
ValidRow, ThirtyDWt,
BLANK()
)
Regards
Phil
Proud to be a Super User!
Could you please provide a sample dataset or PBIX file? And a depiction of what you are trying to calculate
Proud to be a Super User!
Paul on Linkedin.
Ah! So I have a number of these parameters. I will try to plug those in this am and use the original last and give it a try this am and get back. Thank you!
OK no worries. Yes, the order of the lines is important.
Regards
Phil
Proud to be a Super User!
I was not leveraging the logic correctly thinking about the "true" and how if false then moves to the next. Adjusted my statements to
Valid Row && ThirtyDWt <> BLANK(), ThirtyDWt,
Valid Row && ThirtyDMin1Wt <> BLANK(), ThirtyDMin1Wt,
Etc.
And this seemed to take care of it. Thank you for your help in getting me to think this through.
Hi @Allisond
If my answers helped to solve your problem please mark my answer(s) as the solution.
regards
Phil
Proud to be a Super User!
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 |
---|---|
146 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
218 | |
88 | |
73 | |
64 | |
60 |