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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Custom Column Min and Max Count Difference of a Group

See below. Need a custom column that returns the difference between the min and max count of the 'count_column' grouped by the 'group_column'. And then return a boolean. Something like:

 

 

CALCULATE(
    MIN(
        COUNT(table[count_column])) - 
    MAX(
        COUNT(table[count_column])), 
    ALLEXCEPT(table,table[group_column])
) = 0

 

 
group_columncount_column
Atext
Atext
Btext
Btext
Ctext
2 REPLIES 2
vapid128
Solution Specialist
Solution Specialist

where is your customer ID?

Anonymous
Not applicable

Not sure what you're referring to. For additional clarity. I'm using matrix visual that needs to be filtered if a value (column_count) changes over time. Hence the min minus max. So there is no cutomer ID. Each row has a date associated with it. The count of items for that calandar week needs to be compared across time and then a boolean value is returned if that value has changed.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.