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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.