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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sameergupta60
Helper IV
Helper IV

Need help

Hi all,

 

I need some help on the below Dax

 

Maxdate =
CALCULATE (
MAX ( S1[Finish] ),
ALLEXCEPT ( s1, S1[Towers] ),
TREATAS ( VALUES ( 'S1'[trade]), S1[Trade] )
)
 
above dax I have created the column & sample data picture attached below.
 
my query is trade column 02 BW which finish date max will R17 levels finish date.
but with the above Dax which I created getting the max value of trade 10 LFL  finish date max for all.
 
I want max finish value against trade with last levels
 
TradeLevelsTowersFinishMaxdate
07 FLR17B1 (3P+17)05-10-2104-12-2021
05 WPR17B1 (3P+17)04-01-2104-12-2021
06 PBR17B1 (3P+17)14-01-2104-12-2021
03 IPR17B1 (3P+17)15-12-2004-12-2021
04 BRR17B1 (3P+17)30-12-2004-12-2021
09 ELR17B1 (3P+17)04-12-2104-12-2021
12 1PR17B1 (3P+17)02-11-2104-12-2021
08 DOR17B1 (3P+17)16-11-2104-12-2021
02 BWR17B1 (3P+17)12-10-2004-12-2021

 

Regards,

Sameer 

 

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Please clarify.  The 10 LFL you mention is not in the sample data provided.  If you want to find the max date for the same Trade as well, did you try this expression?

 

Maxdate =
CALCULATE (
MAX ( S1[Finish] ),
ALLEXCEPT ( s1, S1[Towers], S1[Trade] )
)
 
Regards,
Pat




Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

Please clarify.  The 10 LFL you mention is not in the sample data provided.  If you want to find the max date for the same Trade as well, did you try this expression?

 

Maxdate =
CALCULATE (
MAX ( S1[Finish] ),
ALLEXCEPT ( s1, S1[Towers], S1[Trade] )
)
 
Regards,
Pat




Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Please ignore the earlier mail solution which provided is working.

 

thanks for the help

Hi,

 

it is 09 EL

 

the provided expression does not show value on that column.

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.