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
hstgeorge
Helper III
Helper III

FILTER OUT SPECIFIC WEEKS AUTOMATICALLY

I am working with a data set that looks like the below.  I have two tables one with sales data by m445 week and the other is simply a date table for the 445 unique calendar that has every day and shows the week associated with that day.  I want to automatically filter out weeks where the Current Year Sales for those weeks are blank in the data set as there are no sales becasue that week has not happened yet.  Below is simple mock up of what the data sort of looks like.  so, in the below picture I would want to automatically filter out the weeks 2020051through 2020062.  Thanks for any help!!!

 

   Sales CY = sum(sales_CY)Sales PY = sum(sales_PY)
related date table     
Week # M445WKSales CYSales PY
1 2020011133133
2 2020012153153
3 2020013173173
4 2020014193193
5 2020021213213
6 2020022233233
7 2020023253253
8 2020024273273
9 2020031293293
10 2020032313313
11 2020033333333
12 2020034353353
13 2020035373373
14 2020041393393
15 2020042413413
16 2020043433433
17 2020044453453
18 2020051 473
19 2020052 493
20 2020053 513
21 2020054 533
22 2020061 553
23 2020062 573
1 ACCEPTED SOLUTION
VijayP
Super User
Super User

@hstgeorge 

You can use IF Function with your Regular Funciton

IF(ISBLANK(your measure) , Blank(), your measure) Try and let me know

also you can wathc my videos on www.youtube.com/perepavijay




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@hstgeorge 

 

Try create a column as a slicer,

salescy.JPG

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

VijayP
Super User
Super User

@hstgeorge 

You can use IF Function with your Regular Funciton

IF(ISBLANK(your measure) , Blank(), your measure) Try and let me know

also you can wathc my videos on www.youtube.com/perepavijay




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


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.