Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Here is a link to my code - https://drive.google.com/file/d/1-Ue0OVG2C-oPRK8GPKkgO0WwsW_8Z4mU/view?usp=share_link
I have a Whatif slider, Adjusted Hours. If a number is put into that slider, I want to create a dynamic value from the "Operation Hours" in my Packages table, using a measure.
But as soon as I put the Revised Hrs into my table, it returns all the Packages, instead of using the Filter from the selected Allocation (AllocationID=106)
Please could you help, I've tried so many options? Calculate, SUMX, trying to find how to do Rowlevel filtering.
I will then be doing the calculation/adjustment in each record of the the PackageDetail child table.
Thank you
Tracey
@dreambeforeyou , Try like
Revised Hrs =
IF( not(isblank('Adjusted Hrs'[Adjusted Hrs Value])) && 'Adjusted Hrs'[Adjusted Hrs Value] = 0, SELECTEDVALUE(Packages[Operation Hours]),
'Adjusted Hrs'[Adjusted Hrs Value])
Hi Amit,
Thanks so much for looking at my problem. And yes, I so know I needed to fix the logic of the expression to check for both. I really appreciate your help.
BUT, my actual issue is that when I use the Measure in my table, it ignores the filter of the Allocation ID and returns all rows.
So I want this, plus the [Revised Hrs]
But instead when I add [Revised Hrs] to the table, I get this:
How do I only return the 5 value for the single row?
Thanks again,
Tracey
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
117 | |
108 | |
107 | |
92 | |
68 |
User | Count |
---|---|
167 | |
130 | |
129 | |
95 | |
91 |