cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dogcat Frequent Visitor
Frequent 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

Accepted Solutions
Super User
Super User

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

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



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

Proud to be a Datanaut!




2 REPLIES 2
Super User
Super User

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

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



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

Proud to be a Datanaut!




Highlighted
dogcat Frequent Visitor
Frequent Visitor

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

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
Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 257 members 2,707 guests
Please welcome our newest community members: