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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

New Member

Counting values in a MEASURE


I am currently learning Power BI and I have taken a stumble... 

I have a field that I created through a measure - so it is not a part of a table since I calculated it from my original table (just to clarify). However I am trying to take the data one step further and "measure the measure" essentially. 

My original measures name is "RFI's Completed Ontime" and within that measure I have 3 catagories - "On-Time", "Late" & "Unresolved". 

However, now I am trying to quantify/count how many times each of these words occures in that measure so that I can put them in a pie chart. 

Keep in mind, I am essentially attempting to take a MEASURE OF A MEASURE


Above is a screen shot of the measure I am attempted to measure. I know it looks like its in a table, but it is just a measure being displayed in one of the views.



****TO ADD CONTEXT*******

Here is the DAX I used to created the first measure, if it is not possible to take a measure of a measure, then maybe it would be possible to tweek the first measure to get the desired outcome as explained about? SEE BELOW


RFI's Completed Ontime =
VAR NumDays = [RFI's Days Under or Overdue]
VAR Result =
    NumDays <1, "On-Time",
    NumDays >=-1, "Late")
    RETURN Result
Community Support
Community Support

Hi , @Austin_Fisher 

According to your descritpion, you want to count the measure value with three options.

Here are the steps you can refer to :

(1)This is my test data:


(2)We can create a table using "Enter Data":  The table name is 'Table 2'


We do not need to create any relationship between tables.


(3)Then we can create a measure :

Count Measure = var _t = SUMMARIZE('Table' ,'Table'[Master] ,'Table'[Customer], "RFI Measure" , [RFI's Completed Ontime])
var _cur_master = MAX('Table'[Master])
var _cur_type= MAX('Table 2'[Column1])
 COUNTROWS(FILTER(_t , [RFI Measure] = _cur_type))

Then we can put this measure and field on the visual and we can get the result as follows:





If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 


Best Regards,

Aniya Zhang

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


Super User
Super User


Share the download link of the PBI file.

Ashish Mathur
Super User
Super User

@Austin_Fisher , You need to use dynamic segmentation


Power BI ABC Analysis using Window function, Dynamic Segmentation:

Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count:

Helpful resources


Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors