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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
douglasfilipe
Frequent Visitor

Filter card values

Hi all.

I've got this data:

Project RiskLevel

Risk 1Low
Risk 2Moderate
Risk 3High
Risk 4Moderate
Risk 5High
Risk 6Low
Risk 7Moderate
Risk 8High
Risk 9High
Risk 10Moderate

 

How can I create 3 for each level filtering values ?

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

Hi, @douglasfilipe 

According to your description, you want to get the count number of three different numbers and display them in card charts, you can try this method:

  1. Create three measures:
Count of High = COUNTX(FILTER('Table',[RiskLevel]="High"),[Project] )
Count of Moderate = COUNTX(FILTER('Table',[RiskLevel]="Moderate"),[Project] )
Count of Low = COUNTX(FILTER('Table',[RiskLevel]="Low"),[Project] )
  1. Then create 3 card charts and place them, like this:

v-robertq-msft_0-1608273579520.png

 

And you can get what you want.

What’s more, I think that to get the count number based on different levels, using Matrix may be a more convenient method to achieve this, you can take a look:

Create a Matrix and place it like this, then set the value summarized type to “Count”:

v-robertq-msft_1-1608273579533.png

 

You can download my test pbix file here

 

Best Regards,

Community Support Team _Robert Qin

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

4 REPLIES 4
v-robertq-msft
Community Support
Community Support

Hi, @douglasfilipe 

According to your description, you want to get the count number of three different numbers and display them in card charts, you can try this method:

  1. Create three measures:
Count of High = COUNTX(FILTER('Table',[RiskLevel]="High"),[Project] )
Count of Moderate = COUNTX(FILTER('Table',[RiskLevel]="Moderate"),[Project] )
Count of Low = COUNTX(FILTER('Table',[RiskLevel]="Low"),[Project] )
  1. Then create 3 card charts and place them, like this:

v-robertq-msft_0-1608273579520.png

 

And you can get what you want.

What’s more, I think that to get the count number based on different levels, using Matrix may be a more convenient method to achieve this, you can take a look:

Create a Matrix and place it like this, then set the value summarized type to “Count”:

v-robertq-msft_1-1608273579533.png

 

You can download my test pbix file here

 

Best Regards,

Community Support Team _Robert Qin

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

douglasfilipe
Frequent Visitor

I found the solution. It's just use filters and I've tried to use DAX. Tks all!

amitchandak
Super User
Super User

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

Appreciate your Kudos.

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

My table (data source)

Captura de tela 2020-12-16 143657.jpg

I need 3 card for each level type:

Captura de tela 2020-12-16 143254.jpg

High must be 1, Moderate 1 and Low 1

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

October NL Carousel

Fabric Community Update - October 2024

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