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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
dogcat
Regular Visitor

Modify YoY% quick measure to filter data points in the future

The quick measure YoY% is giving me results for the future 12 months.  I want the YoY% to only match the dates for which there is data (Purchases).  My data ends in 12/2017 and I want the YoY% to stop on 12/2017.  

 

 

 

Purchases YoY% =
IF(
ISFILTERED('qCalendar'[FirstDayofMonth]),
ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),
CALCULATE(
SUM('qPurchaseHistory'[Purchases]),
DATEADD('qCalendar'[FirstDayofMonth].[Date], -1, YEAR)
)
)

 

Capture.JPG

 

Thanks in advance.

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @dogcat,

 

You are using a calendar column on your graph right?

 

Just go on the visual filter and all non blank on the Purchase values will filter out all the dates that are blank in the purchase.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @dogcat,

 

You are using a calendar column on your graph right?

 

Just go on the visual filter and all non blank on the Purchase values will filter out all the dates that are blank in the purchase.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Yes on the calendar table.  I was trying so hard to filter by date it didn't occur to filter by presence of or lack of a value.  Thanks.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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