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
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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors