The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello there! I have a rather simple doubt, but I'm still learning.
I had a bunch of columns related to one person and I wanted to transform these columns into rows, so I pivotted the information and got something like this:
Person | KPI | Score |
John Doe | % of TGG completed | 63,3% |
John Doe | % of new users | 31,1% |
John Doe | % of points used | 77,0% |
For each KPI we have a specific score we want to show, for example, the first KPI should only be showed in the table if it's below 50%, the second one too, so it's showing correctly since it's 31,1%. For each KPI we have a specific value. How to filter the rows so only the values below what we want will show?
Thank you for the attention!
@Anonymous , Not very clear , Try a measure like this in place of score. Blank in else is important to remove rows. You can change conditions as per need
Switch( True(),
max(table[KPI]) = "% of TGG completed" && [Score] >= 50 , [Score],
max(table[KPI]) = "% of new users" && [Score] >= 50 , [Score],
max(table[KPI]) = "% of points used" && [Score] >= 50 , [Score],
blank())
Thank you for the response!
I did what you told me but it did not return the results as expected, in fact it kept giving errors. It gave me an idea though. Since I couldn't just hide the KPIs I don't want to appear I decided to create a column beside them showing the ones Below the Threshold.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
20 | |
11 | |
10 | |
7 |