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
bajracharya
Regular Visitor

DAX- Date Range vs Single Date

** Need Help 
I have a table with project Id, Date and Value

How can I write DAX to Display
If Single Date is Selected then display value from that month or the last entered value for the project
If Date is in Range then display value from the last month for each project or the last entered value for each project

projectIDvaluedateMonth
141/1/2019Jan
1982/1/2019Feb
1963/1/2019Mar
1924/1/2019Apr
1965/1/2019May
1946/1/2019Jun
1697/1/2019Jul
1988/1/2019Aug
1739/1/2019Sep
17310/1/2019Oct
19011/1/2019Nov
19612/1/2019Dec
2761/1/2019Jan
21102/1/2019Feb
2963/1/2019Mar
2254/1/2019Apr
2255/1/2019May
2266/1/2019Jun
207/1/2019Jul
22068/1/2019Aug
2449/1/2019Sep
210010/1/2019Oct
29511/1/2019Nov
27012/1/2019Dec
3121/1/2019Jan
382/1/2019Feb
33183/1/2019Mar
31254/1/2019Apr
3455/1/2019May
33586/1/2019Jun
3227/1/2019Jul
3488/1/2019Aug
3659/1/2019Sep
37810/1/2019Oct
31211/1/2019Nov
35712/1/2019Dec
0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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