Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17899

Ignore a Slicer in a object, only for the measure

$
0
0

Hi,

 

I would like to create a measure that ignores a field filter ( Slicer ), like year or a flag for example.

 

I have this measure:

 

SeasonOnly = CALCULATE( Sum( Sales[UnitsSold] ) , FILTER( All( Sales[IsSeason] ), Sales[IsSeason] = 1 ))

 

Which is quite close to what I need. But when I apply a slicer, this is what happens :

 

0.PNG1.PNG2.PNG

 

As you can see, when I select 0 in the Slicer, the product Belt will disapear, as its unitsSold with IsSeason = 0 is null. However, the SeasonOnly measure should be there in the table with 56,

 

Is there anyway to make this work in this context?

 

Not easy to explain, hope my example could make it clear.

 

Thanks

Lucas

 


Viewing all articles
Browse latest Browse all 17899

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>