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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ambresameer
Frequent Visitor

SUM OF MAX VALUE BY LATEST TRANSACTION DATE

Hi,

Below is the table which I am using in my report and I am facing challenges while trying to calculate the SUM of MAX 't_mauc_1' value by latest 't_trdt' column ( The datetime may remain same or different even if the values in the 't_mauc_1' column are different ). So in this case my output should be as in the second screenshot.  Is there a way to handle this in DAX, I am new to DAX and need help on this one ?

Test.JPG

Test_1.JPG

 

Thanks

3 REPLIES 3
ambresameer
Frequent Visitor

I tried the measure but received the below error. 

 

Test_1.JPG

amitchandak
Super User
Super User

@ambresameer , Try a meausre  like

sumx(values(table[t_item]), calculate(lastnonblankvalue(Table[t_trdt], max(Table[t_cpcp]))))

I tried the measure but received the error instead after using that in the visual. You can see that in the above screenshot.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors