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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
runnerpaul
Regular Visitor

Hide records with no sales this year

Hi,

I have the following table:

I'd like to change it so that if there's no data for and product group which doesn't have sales this year but does the previous year the record doesn't get displayed. In this case 'Other' wouldn't be displayed. How do I do that?

If it helps the formula I used for 'Actual Prior Year' is:

Actual Prior Year:=SUMX(FILTER(BI_SalesAnalysis, MONTH([Delivery Date]) = MONTH(TODAY()) && [Financial Year] = MAX([Financial Year]) - 1), [Delivery Value CON])

Cheers

Paul

2 REPLIES 2
ALeef
Advocate III
Advocate III

Since you are calculating a column, it will be calculated for all rows in the table showing with your applied filters.

 

What you need to do is change your filters on your display table to not show rows without an [Actual] for the month.  Then you will have to make sure of what you want as far as math on the bottom.  If you still want the total to show correctly for the Actual Prior Year, you will have to use ALL in your calculations - otherwise that 200pounds would be removed when you filtered out the "Other" category.

 

Greg_Deckler
Super User
Super User

I'm seeing an X where your table is supposed to be.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors