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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
hilmandenis
Frequent Visitor

Show Data on Card Based on Status

Hi everyone,

 

I have a canvas that shows a report of a transaction. It's something like this

 

powerbi.PNG

  

 

 

I want to create a card that shows a summarize value of Pay Amount based on Order Status if I click the date in the line chart. Right now both are showing the total amount based on date. I want the left card to show the total Pay Amount of the successful order and the right card to shows the total Pay Amount of fail order. 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

In Visual level filter, you can add order status and filter Screenshot 2020-01-08 13.27.23.png

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, I create a table to test:

1.png

Then, I create two measures to calculate Sum of [Pay Amount] based on [order Status]:

Successful Sum = CALCULATE(SUM('Table'[Pay Amount]),FILTER('Table','Table'[Order Status]="Successful"))

Failed Sum = CALCULATE(SUM('Table'[Pay Amount]),FILTER('Table','Table'[Order Status]="Failed"))

Choose the card visual for these two measures and choose date as a slicer, the result shows:

2.png

Here is my test pbix file:

pbix 

 

Best Regards,

Giotto Zhi

 

View solution in original post

2 REPLIES 2
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, I create a table to test:

1.png

Then, I create two measures to calculate Sum of [Pay Amount] based on [order Status]:

Successful Sum = CALCULATE(SUM('Table'[Pay Amount]),FILTER('Table','Table'[Order Status]="Successful"))

Failed Sum = CALCULATE(SUM('Table'[Pay Amount]),FILTER('Table','Table'[Order Status]="Failed"))

Choose the card visual for these two measures and choose date as a slicer, the result shows:

2.png

Here is my test pbix file:

pbix 

 

Best Regards,

Giotto Zhi

 

amitchandak
Super User
Super User

In Visual level filter, you can add order status and filter Screenshot 2020-01-08 13.27.23.png

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.