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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jyaul786
Helper II
Helper II

Last value by date, category using date slicer

Dear Helper,

 

I have two tables , data table,Calendar and related each others.Data table like:

jyaul786_0-1704625197072.png

 

 

 

i want to get two measures(Measure start and Measure End). and output will be: on selected date or last value by Order_date from each Sub category where Category=7 and using date slicer.

For example: if i select date ranges like:

jyaul786_1-1704625227772.png

 

 

how can i achieve this using Dax ?

 

 

 

3 REPLIES 3
jyaul786
Helper II
Helper II

@Ahmedx @amitchandak @sayaliredij 

 

Could you please help , for above issue.

 

sayaliredij
Solution Sage
Solution Sage

Hi @jyaul786 

 

Can you elaborate more how exactly you need measures?

I was not able to understand how these highlighted values are calculated.

as 0 does nor exists at all and 15 is value from 29 Dec which is out of range. 

 

sayaliredij_1-1704626802386.png

 

Thanks,

Sayali





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




if there is no value on date selected or before then 0 .

and for the C, there is no any value on date 30/12/2023 so output will have last value i.e. 15.

Summary , if there are no value on selected date then measure will be last(back) value by date for each sub category.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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