Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have this Dax code "
The lines are all product families.
So if a product family in the latestmonth (max month whatever) is above a threshold value (100k) in this case it should show that line.
Therefore the If with 0 or 1 in the dax above.
I then filter on 1.
But the dax is doing :
The threshold value is ok. The selected measure is Yot.GC and is giving values.
So why would it show a 1 and not 0 what I would expect?
Solved! Go to Solution.
Well maybe it is not the best solution when field parameters are involved but I went with this solution.
Using a switch to get the selected measure. There are only 3 so that is ok.
Well maybe it is not the best solution when field parameters are involved but I went with this solution.
Using a switch to get the selected measure. There are only 3 so that is ok.
Was a bit quick....so this is going wrong
var valueLastMonth = CALCULATE( SELECTEDVALUE(prmMeasure[Selected Measure]), REMOVEFILTERS(dimDate)
This line returns the name of the measure and not the outcome of the measure like column Tot.GC.
These are field parameters in a slicer so user can choose what measure to use. (USD or EUR etc).
Is there a simple way to ammend the code?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |