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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jaime-aaron
Frequent Visitor

Counting of Answer Using Measure

Good day!

 

 

Im currently checking if how to count how many '5' and '4' are there per line item?  Below is the sample file as reference:

Capture.PNG

 

What measure to use for this scenario? Thanks in advance!!

3 REPLIES 3
v-jiascu-msft
Employee
Employee

Hi @jaime-aaron,

 

Do you mean counting items of each columns contained numbers? Take the fifth column "Attended" for example, the measure could be like it below. Then you can write the similar measure for other columns.

Measure_Attended =
CALCULATE ( COUNT ( Table5[Attended] ), 'Table5'[Attended] IN { 4, 5 } )

Counting_of_Answer_Using_Measure

 

Best Regards,

Dale

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

I tried to re-create the formula (mCount = CALCULATE ( COUNT ( Inpatient[m_Mean] ), 'Inpatient'[m_Mean] IN {4,5} )) however it does not display the answer,see below:

Capture1.PNG

 

Im checking as to how it can display/count the number 4 and 5.

 

 

Thanks! 

Hi @jaime-aaron,

 

Can you share the pbix file? The m_Mean column didn't in the snapshot of your first post. 

 

Best Regards,

Dale

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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