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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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