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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Salfii
Helper I
Helper I

Overall MAX()-Value which ignores the context

Hi,

 

is there any way to extract an overall MAX()-Value of a dimension which ignores any context (Row-Context for example)?

 

I´m currently trying to achieve some YTD - PY Comparison, but not just for Year(today()), it should be the Max present year in the data or the maximum selected year. Therefore, I need to extract the Maximum Year without context.

 

Currently there´s a problem with citys (or other dimensions) which don´t have values for the maxium present year (2017 in this case):

 

scr.PNG

 

The formular I´m using fot PAX YTD is:

 

PAX YTD = 
CALCULATE(
SUM(TrafficData[PAX]);
    FILTER(
        ALL('#L_LinkTable'[Year]);
        VALUE('#L_LinkTable'[Year]) = VALUE(MAX('#L_LinkTable'[Year]))
    )
)

The year in this case, should always use the overall maximum year (or selected maxium year) and ignore the row context of "Aachen", is this possible?

 

Thanks in advance.

 

Best regards.

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Salfii,

 

You may try to use ALLSELECTED Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.