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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Ahbiswas
New Member

KPI card visual

I am working with survey response dataset, where a column "Results" indicates if the survey is a pass or a fail using text "Pass" or "Fail".

 

When I use KPI card visual and input the results column into indicator field and Trend Axis field and show the value as "percentage of grand total", it's returning the Pass percentage.

 

Although this is what am looking for but not sure why and how KPI card visual is only showing the pass percentahe and not the fail percentage.

 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @Ahbiswas 

I build a sample table.

1.png

I build a calculated column and two measures to have a test.

Column = CALCULATE(COUNT(User[ID]),ALLEXCEPT(User,User[ID]))/CALCULATE(COUNT(User[ID]),ALLSELECTED(User))
Measure1 = 
VAR _sel =
    ALLSELECTED ( 'User'[Statement] )
RETURN
    CALCULATE (
        COUNT ( User[ID] ),
        FILTER ( ALLSELECTED ( User ), User[Statement] IN _sel )
    )
        / CALCULATE ( COUNT ( User[ID] ), ALL ( User ) )
Measure 2 = CALCULATE(COUNT(User[ID]),FILTER(User,User[Statement]=MIN(User[Statement])))/CALCULATE(COUNT(User[ID]),ALL(User))

Result:

By default,column and measure2 will show Passpercentage without FailPercentage. Measure1is correct.

2.png

Select Fail/Pass, all results are correct.

3.png

Change Values in statement column to have a test.

4.png5.png

We found the KPI with column and Measure2 show 2percentage/ zzzpercentage. Measure1 is correct. The result is related to the measure you use or KPI visual Trend axis will display the entire change, the indicator will display the value of the last point of trend axis(Pass,2,ZZZ) by default. 

If this relpy still couldn't help you solve your problem, please provide me with your data model and your calculate logic in calculated column. Or you can provide me with your pbix file by your Onedrive for Business.

You can download the pbix file from this link: KPI card visual

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

7 REPLIES 7
v-rzhou-msft
Community Support
Community Support

Hi @Ahbiswas 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

v-rzhou-msft
Community Support
Community Support

Hi @Ahbiswas 

I build a sample table.

1.png

I build a calculated column and two measures to have a test.

Column = CALCULATE(COUNT(User[ID]),ALLEXCEPT(User,User[ID]))/CALCULATE(COUNT(User[ID]),ALLSELECTED(User))
Measure1 = 
VAR _sel =
    ALLSELECTED ( 'User'[Statement] )
RETURN
    CALCULATE (
        COUNT ( User[ID] ),
        FILTER ( ALLSELECTED ( User ), User[Statement] IN _sel )
    )
        / CALCULATE ( COUNT ( User[ID] ), ALL ( User ) )
Measure 2 = CALCULATE(COUNT(User[ID]),FILTER(User,User[Statement]=MIN(User[Statement])))/CALCULATE(COUNT(User[ID]),ALL(User))

Result:

By default,column and measure2 will show Passpercentage without FailPercentage. Measure1is correct.

2.png

Select Fail/Pass, all results are correct.

3.png

Change Values in statement column to have a test.

4.png5.png

We found the KPI with column and Measure2 show 2percentage/ zzzpercentage. Measure1 is correct. The result is related to the measure you use or KPI visual Trend axis will display the entire change, the indicator will display the value of the last point of trend axis(Pass,2,ZZZ) by default. 

If this relpy still couldn't help you solve your problem, please provide me with your data model and your calculate logic in calculated column. Or you can provide me with your pbix file by your Onedrive for Business.

You can download the pbix file from this link: KPI card visual

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

That answers my query, thank you Rico

parry2k
Super User
Super User

@Ahbiswas what is your goal? What you want to show? You need to create measures to achieve the result?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I have created a measure and have got the result that I was looking for. But my question is more like a query as I can't figure out how KPI card visual is giving me the pass percentage (without a measure)

@Ahbiswas it is very hard to say without looking at how you the % without measure. Could be that it was taking last value from Pass/Fail. There could be many factors and hard to answer with these little details.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

pranit828
Community Champion
Community Champion

Hi @Ahbiswas 

Always attach a screenshot for visual queries.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.