Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Stubbz66
New Member

How to display values that didn't appear the week before

Hi Power BI Community

 

I've been asked by a customer to provide a table that shows on any given selected week the values that DIDN'T appear the week before.

 

So from the table below they would want a seperate table that shows driver 220,303,311,325 did NOT appear in week 3. Is this possible? and if so how do I go about it! Any help will be greatly appreciated.

Stubbz66_0-1703091842444.png

 

1 ACCEPTED SOLUTION
rubinboer
Resolver II
Resolver II

hi @Stubbz66 

 

consider this:

  • assumption your columns will be 3/4
  • Check for unique drivers by using DISTINCTCOUNT
  • Check where there is one in 4 (!ISBLANK()) and not in 3 (ISBLANK)

Measure

Not present previous Week = CALCULATE(DISTINCTCOUNT('Drivers'[Drivers]), NOT(ISBLANK(Drivers[4])), ISBLANK(Drivers[3]))
 
Result
rubinboer_0-1703142940821.png

 

Filter the driver on the measure and show that only
rubinboer_1-1703143044629.png

 

 

 

View solution in original post

2 REPLIES 2
rubinboer
Resolver II
Resolver II

hi @Stubbz66 

 

consider this:

  • assumption your columns will be 3/4
  • Check for unique drivers by using DISTINCTCOUNT
  • Check where there is one in 4 (!ISBLANK()) and not in 3 (ISBLANK)

Measure

Not present previous Week = CALCULATE(DISTINCTCOUNT('Drivers'[Drivers]), NOT(ISBLANK(Drivers[4])), ISBLANK(Drivers[3]))
 
Result
rubinboer_0-1703142940821.png

 

Filter the driver on the measure and show that only
rubinboer_1-1703143044629.png

 

 

 

Many thanks for the quick response Rubinboer. I'll put this into action later today!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.