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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply

DAX Conditional Lookup

Hi!

I've got a table that look like this:

IDSL CODEStatus
1SL0001Current
1SL0002Current
2SL0003Past Due
2SL0004Current
3SL0005Past Due
3SL0006Past Due

 

I need a dax measure that will tag the IDs its final status, the rule is that whenever there are Past Due SL in an ID, all of it will be considered Past Due. Here is the must be result table based on the example above:

IDStatus
1Current
2Past Due
3Past Due

 

Thank you!

2 ACCEPTED SOLUTIONS
Nathaniel_C
Community Champion
Community Champion

Hi @Peejz_Jalmasco 

Stats = CALCULATE(MAX('YourStatus'[Status]),ALLEXCEPT('YourStatus','YourStatus'[ID]))

my table is "YourStatus'
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathanielstat.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

@Nathaniel_C 

Thanks for your help. I've solved this using the MAXX function to convert the measure "[Account Status2]"

Final Status = CALCULATE(MAXX(VALUES('PN MASTER DATA'[SLCODE]),[Account Status2]), ALLEXCEPT('PN MASTER DATA','PN MASTER DATA'[NAME]))

View solution in original post

5 REPLIES 5
Nathaniel_C
Community Champion
Community Champion

Hi @Peejz_Jalmasco 

Stats = CALCULATE(MAX('YourStatus'[Status]),ALLEXCEPT('YourStatus','YourStatus'[ID]))

my table is "YourStatus'
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathanielstat.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @Nathaniel_C 

I'm sorry but the column 'Status' is from a measure and is not a column, i don't think that the MAX function will run in a measure -- MAX([Status])

Hi @Peejz_Jalmasco , what does the measure look like?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@Nathaniel_C 

Thanks for your help. I've solved this using the MAXX function to convert the measure "[Account Status2]"

Final Status = CALCULATE(MAXX(VALUES('PN MASTER DATA'[SLCODE]),[Account Status2]), ALLEXCEPT('PN MASTER DATA','PN MASTER DATA'[NAME]))

Hi @Peejz_Jalmasco 
Or with just the id.

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathanielstat2.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors