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

NEED Help in calculating Variance wherein if selected dates is more than Todays date it will be 0

Here's a screenshot of my dashboard, I need the Variance Visual to not calculate April 2022 onwards since it is not yet "Today" date. Please help. Thank you. 

remespinosa_1-1648621478423.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@remespinosa , You can create a measure like this and use in visual or use this as visual level filter check for nonblank

 

if(max('Date'[Date]) >eomonth( today(),0) , blank() ,[Measure]) 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
remespinosa
Regular Visitor

Thanks for this!

amitchandak
Super User
Super User

@remespinosa , You can create a measure like this and use in visual or use this as visual level filter check for nonblank

 

if(max('Date'[Date]) >eomonth( today(),0) , blank() ,[Measure]) 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.