cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors