Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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

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.

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

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors