Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi everyone , I am trying to display the last 12 weeks date from a selected date .
However, there are no data on the last 12 weeks date , But i just want to display the date so that viewer can take note on the last 12 weeks date .
I am using "The Last 12 Weeks Date = CALCULATE(DATEADD(LASTDATE('Date'[Notification Date]),-77,DAY))" , but at some point , the "card" visual is showing blank because I have no notification on the last 12 weeks date from a selected date .
Should I add another independent table to help display available date ?
Picture showing blank because there's no data on that last 12 weeks date from a selected date from the notification date filter.
Picture showing 5/23/2023 because there's a data on that last 12 weeks date from a selected date from the notification date filter.
Solved! Go to Solution.
Why not just show in your measure what is the latest available date instead?
MESURE_ =
VAR LatestNotificationDate =
"Latest avaiable from past 12 weeks: "
& FORMAT (
CALCULATE (
MAX ( Notification[Date] ),
FILTER ( Dates, Dates[Date] <= MAX ( Dates[Date] ) - ( 7 * 12 ) )
),
"dd/mm/yyyy"
)
RETURN
IF ( ISBLANK ( [My Measure] ), LatestNotificationDate, [My Measure] )
Why not just show in your measure what is the latest available date instead?
MESURE_ =
VAR LatestNotificationDate =
"Latest avaiable from past 12 weeks: "
& FORMAT (
CALCULATE (
MAX ( Notification[Date] ),
FILTER ( Dates, Dates[Date] <= MAX ( Dates[Date] ) - ( 7 * 12 ) )
),
"dd/mm/yyyy"
)
RETURN
IF ( ISBLANK ( [My Measure] ), LatestNotificationDate, [My Measure] )
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
thanks so much @Ritaf1983 , I have the solution from @danextian working for me already . Love the community ! all of them are really kind to help .
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
78 | |
59 | |
35 | |
33 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |