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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Flavio_Souza
Regular Visitor

Creating a measure that shows the difference for the first visible date before the current date

I have a simple bar chart that shows a value for each date.
I want to create a measure, to be used in the tooltip, that will show the difference in value between the last visible date in the chart.
If I'm filtering the chart so it only shows mondays, I want the tooltip for each day to show the difference from the current date to the last monday.

For instance, in scenario 1, the tooltip for 16/12 (dd/mm) will show 39.72 - 16.75 = 22.7. Notice that 16.75 is the value for the monday before.
But if I'm filtering like in scenario 2, the tooltip for 16/12 will show 39.2 - 34.9 = 4.3. Notice that 34.9 is the value for the previous day.


Scenario 1

Flavio_Souza_1-1734457578104.png

Scenario 2

Flavio_Souza_2-1734457737944.png

 

 

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.