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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Blanks values with YTD

Hey,

 

 

Im using this simple formula 

Total sales YTD = CALCULATE([Total Sales], YTD( Calendar[Date]))

 

It gives me some months in Blank since we havent finished 2019 yet, i know thats the reason why. Im new in power bi so, i want to know is there any way we can filter those blanks in the formula?

 

Thanks

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Try this measure

=IF(ISBLANK([Total Sales]),BLANK(),CALCULATE([Total Sales], YTD( Calendar[Date])))


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.