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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Blazej_13
New Member

DAX Calculation

Hello,

 

I am a newbie in Power BI and want to get maxx for specific material in filtered month:

formula:
MAXX (ALLSELECTED (DIM_Date'[DateID]),[Measure])

results:

Blazej_13_0-1745503672263.png


Table is filtered for particular item - how the formula should look like to get max in each row so 523.9.
Also when I will remove filter how the formula should look to give max for each material in month provided by the slicer.

Thanks

1 ACCEPTED SOLUTION
pankajnamekar25
Super User
Super User

Hello @Blazej_13 

 

try this measure

 

Max Measure PerMaterial =

CALCULATE(

    MAXX(

        VALUES(DIM_Date[DateID]),

        [Measure]

    ),

    ALLEXCEPT(FactTable, FactTable[MaterialID])

)

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

View solution in original post

4 REPLIES 4
v-kathullac
Community Support
Community Support

Thanks @pankajnamekar25  for Addressing the issue.

 

Hi @Blazej_13 ,
we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.

If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

Regards,

Chaithanya.

v-kathullac
Community Support
Community Support

Thanks @pankajnamekar25  for Addressing the issue.

 

Hi @Blazej_13 ,
we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.

If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

Regards,

Chaithanya.

v-kathullac
Community Support
Community Support

Thanks @pankajnamekar25  for Addressing the issue.

 

Hi @Blazej_13 ,
we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.

If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

Regards,

Chaithanya.

pankajnamekar25
Super User
Super User

Hello @Blazej_13 

 

try this measure

 

Max Measure PerMaterial =

CALCULATE(

    MAXX(

        VALUES(DIM_Date[DateID]),

        [Measure]

    ),

    ALLEXCEPT(FactTable, FactTable[MaterialID])

)

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.