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!




View solution in original post

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!




View solution in original post

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
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 273 members 3,008 guests
Please welcome our newest community members: