I want to show just the customers who have sales records in both years. Example bellow:
Go to Solution.
Hi @vsgarciap ,
You can create measure Filter1 like DAX below, then put the Filter1 in the Visual Level Filter of Matrix visual, setting Filter1 as "is not blank".
var record_2018=CALCULATE(MAX(Table1[Sale]),FILTER(ALLSELECTED(Table1), Table1[Cliente] =MAX(Table1[Cliente])&&Table1[Year]=2018))
var record_2019=CALCULATE(MAX(Table1[Sale]),FILTER(ALLSELECTED(Table1), Table1[Cliente] =MAX(Table1[Cliente])&&Table1[Year]=2019))
IF(record_2018<>BLANK()&&record_2019<>BLANK(), 1, BLANK())
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
View solution in original post
It works perfectly, thank you
Join us in the third Triple A event!
It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.
Make sure you didn't miss any of the things that happened in the community in January!