cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hr_tetra
Helper I
Helper I

Measures that bring inn old categories, outside of date ranges

Hi All,

 

Normally when doing measures, and you e.g. add a table with categories and the measure, within a date range, you would normally only get values for the categories that actually have values for the period. So e.g. the last month we have data from batch 20-25.

 

But for some measures, I will get all the previous batches included,  even those closed out and with no generated data. So batch 1-25 will be included, and all the old and inactive/finished batches will have a value of zero.

 

Can anyone explain why measures sometimes lead to this behaviour? It is a bit of a hassle trying to filtering out the old values without affecting real values.

 

Best regards,

 

Ole

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

It depends on whether the measure returns blank or 0. If the measure returns blank then by default those values will be filtered out, but if it returns 0 then the values will be shown.

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

It depends on whether the measure returns blank or 0. If the measure returns blank then by default those values will be filtered out, but if it returns 0 then the values will be shown.

Aha, turns out the measure I was working on excluded some groups (those 0 or blank), so I added an IF(AND() for zero and blank, and now it works normally. Thanks!

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.