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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.