We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi
I'm hoping someone can assist with understanding a DAX measure.
I've inherited a report that includes a measure which excludes data from a matrix column if the SchoolYear is 20222023 AND the course is MFM. See table below. Note, the underlying data has values for MFM in 20222023.
I'm trying to understand HOW and WHY this measure works to give this result?
Without the OR condition of the FILTER ,
Solved! Go to Solution.
I'm pretty sure this is right:
For OR, if one of the two is TRUE, it's TRUE, if both are FALSE, it's FALSE
The 2nd part of the OR, if you were to put it as it's own Measure, returns this:
So for 20222023 MFM, you get a FALSE || FALSE = Don't count it
For 20222023 MPM, you get a TRUE || FALSE = Do count it
All other combo's have a TRUE in them somewhere and get Counted
I'm sure there are other ways to write it that make more sense, but it's interesting
I'm pretty sure this is right:
For OR, if one of the two is TRUE, it's TRUE, if both are FALSE, it's FALSE
The 2nd part of the OR, if you were to put it as it's own Measure, returns this:
So for 20222023 MFM, you get a FALSE || FALSE = Don't count it
For 20222023 MPM, you get a TRUE || FALSE = Do count it
All other combo's have a TRUE in them somewhere and get Counted
I'm sure there are other ways to write it that make more sense, but it's interesting
That makes sense.
Thanks so much!!!!!
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 38 | |
| 33 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 67 | |
| 62 | |
| 38 | |
| 34 | |
| 22 |