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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
common763
Helper III
Helper III

SUMMARIZE TABLE with specific conditions ?

I am actively researching but though to throw this out there while doing so.  A customer asked for a change to a control chart which has a summary table as the driver for it.  This time it has to have specific conditions.  How do I write an IF/IN statement into this for TAGNAME or something else that will summarize based off of specific conditions in TAGNAME?

 

They are asking if TAGNAME = AAA, BBB, CC, etc then summarize.  I tried using a formula for something else inside this but not working.  Again, not being lazy as I am looking online but most examples not specific to this.  Thanks. 

 

TOTAL =
SUMMARIZECOLUMNS(  
Report[Report Type],
Time[Month],
Tag[TagName],
Location[City],

"Total Findings", count(Report[Report ID])  
)
1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@common763,

 

See if you can adapt the examples in the link below. If the first four columns are the Group By, you should be able to add filter arguments between those and the Total Findings expression.

 

https://dax.guide/summarizecolumns/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
common763
Helper III
Helper III

Thanks for the feedback.  Saving this to favorites as this will help.  I ended up altering the summary table and it did what I needed, but this will be benenficial for future reference.  

DataInsights
Super User
Super User

@common763,

 

See if you can adapt the examples in the link below. If the first four columns are the Group By, you should be able to add filter arguments between those and the Total Findings expression.

 

https://dax.guide/summarizecolumns/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors