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
iDataDrew
Advocate IV
Advocate IV

Filtering on Summarized Table

I have a summarized table showing new customers from the most recent week.  I also have a page-level filter of states (e.g. NY, NJ, OH) that is from the original table.  When no filters are in place, then the new customers table matches the new customers trend line.  However, if I filter by state, for example, then they don't match.  I noticed that when I filter by NJ there are somehow rows containing PA in my new customers table.  It's because this new customer has accounts in both NJ and PA, but why wouldn't the State filter clear out the PA accounts?  I'm assuming it has to do with evaluation context, but I can't figure out the exact issue.  Here's my formula for the summarized new customers table:

 

new_customers_tbl.PNG

4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi @iDataDrew,

 

You can use a variable to store the summary table, then use filter function to filter records.

 

For example:

 

New Table=
Var temp= Summarize(AWL,[account_weekly_log_date],[start_date],[end_date],[name],[cust_id],[accept_date],[Utility],[account_status_id],[iso],[State],[Commodity],"RCE",SUM(AWL[RCE]))
return
Filter(temp,AND([account_status_id]=1,[end_date]>[start_date])&&AND([accept_date]>=max([account_weekly_log_date])-7,[accept_date]<max([account_weekly_log_date])))

 

If above not help, please provide a sample file to test.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

@v-shex-msft isn't that essentially the same thing that I have, only using a variable?  

Hi @iDataDrew,

 

>>isn't that essentially the same thing that I have, only using a variable?

 

Since the summary table is a new table which unnamed in the formula, I'd like to suggest you direct use column name to call new table column.(original table's column may doesn't work on new table)

 

large.png

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
CheenuSing
Community Champion
Community Champion

Hi @iDataDrew

 

Try creating a slicer from the statecolumn of the summarized table. Remove the page level filter.

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

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.