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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sahil_87
New Member

Ignoring some rows while aggregating + selection on field.

Hi Experts - Could you please assist me on below query?

 

The channel field in the table has 4 rows (including Total) and it looks like as below:

Sahil_87_0-1635964283518.png

I would like to get assistance on how to exclude Channel A,B & C numbers when Channel is not selected. In current scenario, SUM(Count) is giving the result as 10+20+15+40 = 85 when Channel is not selected. In other words, I would like to display only 40 when channel is not selected and show individual channels + total (4 rows) when channel is selected.

 

Sahil_87_1-1635964966561.png

P.S. I understand it sounds weired to have Total as a row but unfortunately the sum of individual channels are not same as Total.

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

How about:

Count = IF(ISFILTERED (Table[Channel]), SUM(Table[Count]), CALCULATE(SUM(Table[Count]), Table[Channel] = "Total")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

How about:

Count = IF(ISFILTERED (Table[Channel]), SUM(Table[Count]), CALCULATE(SUM(Table[Count]), Table[Channel] = "Total")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






It worked like a charm!! Many thanks Paul. Appreciate your swift response and assistance. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.