Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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 @Anonymous ,
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 @Anonymous
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 @Anonymous ,
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.
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.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 31 | |
| 27 | |
| 24 |