Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everone
I have a two KPIs
this is their table
KPI Actual Planned
Revenue % 20% 30%
Saving Value 2454 3000
I want to use a table and have the values in both Percentage and Numbers but its not working i can only choose one !
can you help me please ?
Solved! Go to Solution.
hi, @Anonymous
After my test, you could do these as below:
Add two calculate measure for each column
New Actual = IF(SEARCH("%",SELECTEDVALUE('Table1'[KPI]),1,0)>0,FORMAT(CALCULATE(SUM('Table1'[Actual])),"0%"),CALCULATE(SUM('Table1'[Actual]))) New Planned = IF(SEARCH("%",SELECTEDVALUE('Table1'[KPI]),1,0)>0,FORMAT(CALCULATE(SUM('Table1'[Planned])),"0%"),CALCULATE(SUM('Table1'[Planned])))
Result:
here is pbix, please try it.
Best Regards,
Lin
hi, @Anonymous
After my test, you could do these as below:
Add two calculate measure for each column
New Actual = IF(SEARCH("%",SELECTEDVALUE('Table1'[KPI]),1,0)>0,FORMAT(CALCULATE(SUM('Table1'[Actual])),"0%"),CALCULATE(SUM('Table1'[Actual]))) New Planned = IF(SEARCH("%",SELECTEDVALUE('Table1'[KPI]),1,0)>0,FORMAT(CALCULATE(SUM('Table1'[Planned])),"0%"),CALCULATE(SUM('Table1'[Planned])))
Result:
here is pbix, please try it.
Best Regards,
Lin
This is Perfect,
Thanks alot Lin it worked like magic.
Hope you have a great day 🙂
Regards,
Abdulkareem
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
99 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |