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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
islam_zaki
Regular Visitor

fillter result by date for lastdate

Hi All 

 

I need to get only the last sales date as one date, now this DAX :

 

LastDate NetSales = CALCULATE([Sales ExVAT/ExCHARITY],LASTDATE(SALESTRANSACTION[SALES DATE]))

 

Giving the last date of each store, may this date have no sales for some stores. 

 

example : 

islam_zaki_0-1619787776975.png

 

 

Thanks in Advance...

2 REPLIES 2
amitchandak
Super User
Super User

@islam_zaki , You have to try something like


Measure =
VAR __id = MAX ('Table'[Store] )
VAR __date = CALCULATE ( MAX('Table'[Date] ), ALLSELECTED ('Table' ), 'Table'[Store] = __id )
CALCULATE ( sum ('Table'[sales] ), VALUES ('Table'[Store] ),'Table'[Store] = __id,'Table'[Date] = __date )

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Thanks for supporting, 

i try the above measure but its fail as below : 

islam_zaki_0-1619819570129.png

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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