March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |