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 need to check a table of data to make sure that the values in all columns are all equal to 40. So in the table below, only row 1 would meet this criteria. Row 2 sums to the same total, but isn't compliant since columns 4 & 5 do not equal 40. Row 3 clearly does not meet the critera.
| 40 | 40 | 40 | 40 | 40 |
| 40 | 40 | 40 | 38 | 42 |
| 25 | 25 | 25 | 25 | 25 |
I then need to take this a stage further and be able to specifiy the value that each row is checked against. So for example, rows 1 & 2 need to have 40 in every column, but row 3 needs to have 25 in each column. Now, in the table above, rows 1 & 3 are compliant, but row 2 still iisn't.
Thanks in advance for any help.
Solved! Go to Solution.
if you need a measure, write it like this
Hi @Desyn ,
Maybe something like this? 🙂
Here the measure:
Measure =
VAR _col1value = SELECTEDVALUE('Table'[Column1])
VAR _col2value = SELECTEDVALUE('Table'[Column2])
VAR _col3value = SELECTEDVALUE('Table'[Column3])
VAR _col4value = SELECTEDVALUE('Table'[Column4])
VAR _col5value = SELECTEDVALUE('Table'[Column5])
RETURN
IF (
_col1value = _col2value && _col1value = _col3value && _col1value = _col4value && _col1value = _col5value, "compliant",
"noncompliant"
)
Hope this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
That's great, thank you for your help.
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 |
|---|---|
| 57 | |
| 38 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |