Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello
I have the following pbix:
In the dashboard, you can see a table with two columns: KPI and ITEM.
What I want, is to add a third column that will calculate the KPI for the respective ITEM.
The KPIs are self-explanatory and they are basically counting amounts that are <10 etc.
Can you help me please write that measure?
I want then to display a graph with each KPI and their total value (total number of amounts counted).
Thanks!
Solved! Go to Solution.
Hi @UsePowerBI ,
You just need to create a Calculated Column in your Transactions Table.
KP =
SWITCH (
TRUE (),
TRANSACTIONS[AMOUNT] > 15, "AMOUNT HIGHER THAN 15",
TRANSACTIONS[AMOUNT] >= 10
&& TRANSACTIONS[AMOUNT] <= 15, "AMOUNT BETWEEN 10 and 15",
TRANSACTIONS[AMOUNT] < 10, "AMOUNT LESS THAN 10",
"NO KPI"
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi @UsePowerBI
here is your measure
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hi @aj1973
Thanks but the graphs do not work with that measure.
I cannot create a graph of the KPIs in x and the MEASURE sum in the y axis. It is very frustrating.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
@aj1973 Thanks but it does not work for me. It's really frustrating.
Please find the my pbix version here: https://ufile.io/ci5bve9h
Any idea please?
Change the visual and click to combine
Here is a gift for all the pain I have been through LOL
Just kidding
Regards
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Thanks but I do not want it to show 'by KPI and ITEM', I want it to display only 'by KPI'!
This is really a nightmare!
Hi @UsePowerBI ,
You just need to create a Calculated Column in your Transactions Table.
KP =
SWITCH (
TRUE (),
TRANSACTIONS[AMOUNT] > 15, "AMOUNT HIGHER THAN 15",
TRANSACTIONS[AMOUNT] >= 10
&& TRANSACTIONS[AMOUNT] <= 15, "AMOUNT BETWEEN 10 and 15",
TRANSACTIONS[AMOUNT] < 10, "AMOUNT LESS THAN 10",
"NO KPI"
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Thanks, it's a good idea.
However, things are a bit more complicated.
The actual criteria overlap. So it is not x<10, 10<x<15 and x>15.
The actual criteria are like x<10, x<15, x>15.
So the calculated column cannot contain one KPI. Each transaction can be part of more than one KPIs.
I think this is something PowerBI developers need to look into.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
105 | |
98 | |
38 | |
30 |