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
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
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.

Top Solution Authors