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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
usergroup113231
New Member

Supply True/False for Unique Combination in Rows

Hi,

I'm having trouble generating a formula using DAX that will supply me with a unique set of rows that have the same status.  Example below:

I'm trying to fulfill a DAX formula (cannot be a measure) in power pivot editor tht supplies me with the "Boolean" field answers in the table below.  The idea would be each Submittal would have to have the same Status for Boolean to be True, If a submittal has a different status then call it false.  Help would be greatly appreciated as aggregations of this without a measure can get tricky.

 

usergroup113231_0-1663269733854.png

 

1 ACCEPTED SOLUTION
jbwtp
Memorable Member
Memorable Member

Hi @usergroup113231,

 

why do you want to do it in DAX? I think Power Query can do it better/easier.

 

In DAX, if you add an index column, you can do something like this:

if( COUNTROWS(FILTER('Table', EARLIER([Name]) = [Name] && EARLIER([Index])>[Index]))+1 = 1, 1, 0)

jbwtp_0-1663285095720.png

 

Cheers,
John

View solution in original post

4 REPLIES 4
wdx223_Daniel
Community Champion
Community Champion

in dax,

CalculatedColumn=CALCULATE(DISTINCTCOUNT(table[Status])=1,ALLEXCEPT(table,table[Submittal]))

Thank you much!  Both formulas work like a charm!

jbwtp
Memorable Member
Memorable Member

Hi @usergroup113231,

 

why do you want to do it in DAX? I think Power Query can do it better/easier.

 

In DAX, if you add an index column, you can do something like this:

if( COUNTROWS(FILTER('Table', EARLIER([Name]) = [Name] && EARLIER([Index])>[Index]))+1 = 1, 1, 0)

jbwtp_0-1663285095720.png

 

Cheers,
John

Hi John!

 

Thank you for formula, reasoning is in our real model, we use a dax formula to show 20-30+ conditional iterations to supply the correct approval or denial, these change as business needs change and would be faster to apply in Dax quickly rather than in Power Query for every change and have to refresh.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.