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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors