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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
kerbaumalas
Frequent Visitor

How to filter and calculate the total of the required value

Good day, 

we have a list of data as below: 

We would like to filter the y status and calculate the total Y and n and display in the dashboard

 

CodeStatus
507af44e55e76305da17f0349c47254en
a8f5985ba2ac6f33787015b7ca1e44e4y
7b1966b4648969cb817952344e1e58b7y
203e99e59f1cbc6c9e777658436af305n
0af6270178d703c78089efa7f32b96a3y
59129e6d4d5dbb6bd9f4b29c22c40016n
7a7f2bcc8fdbfa6c2bd28c49a11601f7n

 

Result required would be: 

Status y = 3

Status n = 4

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

If all codes are unique: [measure] = countrows( T ). If not, then [measure] = distinctcount( T[Code] ).

Then just slice by the relevant atttributes.

View solution in original post

v-jingzhang
Community Support
Community Support

Hi @kerbaumalas 

You could create a measure

Count by Status = COUNT('Table'[Code])

or

Count by Status = COUNT('Table'[Status])
051203.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @kerbaumalas 

You could create a measure

Count by Status = COUNT('Table'[Code])

or

Count by Status = COUNT('Table'[Status])
051203.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Anonymous
Not applicable

If all codes are unique: [measure] = countrows( T ). If not, then [measure] = distinctcount( T[Code] ).

Then just slice by the relevant atttributes.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.