cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NickzNickz_BI
Helper I
Helper I

How to get kpi results based on value from different column

Hi ,

 

I have created KPI Dashboard for my company. My data source is excel. Sample data as below:

NickzNickz_BI_0-1664863827826.png

How can I populate the result in the KPI Card? ... Dax/Measure, or does anyone have better ideas.

Expected Result = Achievement VS Threshold, Min, Target or Not Started

 

Thank you.

Newbie

 

 

 

 

 

1 ACCEPTED SOLUTION

@NickzNickz_BI , Create a new column and use that in the visual level filter of card visual. In card, display count and use a visual level filter



Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Learn Power BI P&L Statement || Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s ||
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!!! How to get Quick Help !!
Resources | Master Power BI !! Expertise Power BI !! Power BI For Tableau User !!

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@NickzNickz_BI , what is logic? What will be displayed on the card? Please explain..

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.



Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Learn Power BI P&L Statement || Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s ||
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!!! How to get Quick Help !!
Resources | Master Power BI !! Expertise Power BI !! Power BI For Tableau User !!

Hi @amitchandak ,

 

Question: What is logic

I give an example logic for Row 2 and something like this:

If Achievement is 0 than result is Not Started 

If Achievement is <B2 than result is Below Threshold  

If Achievement is =B2 and <C2 than result is Threshold 

If Achievement is =C2 and <D2 than result is Min 

If Achievement is >=D2 than result is Target 

 

Question: What will be displayed on the card?

Number (Sum)

NickzNickz_BI_0-1664884300276.png

 

I have a few options actually but after looking deeply, I realized that if I use certain options, I can maximize the use of information. My idea is to create a new column on that table in Power BI and put the logic there. From there, we can make a SUM (column) based on the result. I hope you get what I mean and I have no idea if we able to do that.

 

Thanks and regards,

Newbie

 

 

 

 

 

 

@NickzNickz_BI , Create a new column and use that in the visual level filter of card visual. In card, display count and use a visual level filter



Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Learn Power BI P&L Statement || Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s ||
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!!! How to get Quick Help !!
Resources | Master Power BI !! Expertise Power BI !! Power BI For Tableau User !!

Hi @amitchandak,

 

Basically, I have zero knowledge about Dax. Can you help/teach me how to write the formula properly? I really appreciate your help...

 

I did find some DAX formulas and tried to match them with my condition as below.

 

Achievement Result =
SWITCH(
TRUE(),
'tbl_kpi_submission'[achievement] >0 && 'tbl_kpi_submission'[achievement] < 'tbl_kpi_submission'[Threshold],"Below Threshold",
'tbl_kpi_submission'[achievement] >= 'tbl_kpi_submission'[Threshold] && 'tbl_kpi_submission'[achievement] < 'tbl_kpi_submission'[Min],"Threshold",
'tbl_kpi_submission'[achievement] >= 'tbl_kpi_submission'[Min] && 'tbl_kpi_submission'[achievement] < 'tbl_kpi_submission'[Target],"Min",
'tbl_kpi_submission'[achievement] >= 'tbl_kpi_submission'[Target],"Target","Not Started"
)

 

Let me know if I'm doing it the wrong way.

 

Thanks 

 

 

 

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors