cancel
Showing results for
Did you mean:

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

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

 Code Status 507af44e55e76305da17f0349c47254e n a8f5985ba2ac6f33787015b7ca1e44e4 y 7b1966b4648969cb817952344e1e58b7 y 203e99e59f1cbc6c9e777658436af305 n 0af6270178d703c78089efa7f32b96a3 y 59129e6d4d5dbb6bd9f4b29c22c40016 n 7a7f2bcc8fdbfa6c2bd28c49a11601f7 n

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.

Community Support

You could create a measure

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

or

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

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

2 REPLIES 2
Community Support

You could create a measure

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

or

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

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.

Announcements

#### Power BI Monthly Update - November 2023

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

#### Fabric Community News unified experience

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

#### 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!

#### 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