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

Double Filter

Hello everybody! I hope you all are very good!!!

 

I have a Table with data, and I want to show in the report how many of then suffer fron CONGESTION in their communications. The requirements is that it only shows the number when congestion has happened more thay five times:

Chema_Ortega_Ga_1-1731236232768.png

By now, this is working good. But now they tell me they want to know how many Users have such occurrence more than 5 times.. I have developed a measure:

Users CONGESTION =
CALCULATE(
    DISTINCTCOUNT('GCC_COSTS AUTO_COST_OUTPUT'[User]),
        FILTER('GCC_COSTS AUTO_COST_OUTPUT',[remote_action_get_wi_fi_signal_strength_execution_outputs_AdjacentChannelsCongestion]=1)
        )
 
And the result is:
Chema_Ortega_Ga_3-1731236633548.png

 


 

Which numbers are correct when I have in mind all the occurrences. BUT, the Card does not allow me to make the same filter:

Chema_Ortega_Ga_4-1731236718548.png

So I got 79 users instead of two Users, which is an error. How can I also filter this second card to make it a ppear Users = 2?

 

Thanks a lot! Best regards,

 

Cheema Ortega

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Chema_Ortega_Ga ,

I created a sample pbix file(see the attachment), please check if that is what you want.

Users CONGESTION = 
VAR _tab =
    SUMMARIZE (
        'GCC_COSTS AUTO_COST_OUTPUT',
        'GCC_COSTS AUTO_COST_OUTPUT'[User],
        "@CONGESTION", CALCULATE ( SUM ( 'GCC_COSTS AUTO_COST_OUTPUT'[CONGESTION] ) )
    )
RETURN
    COUNTROWS ( FILTER ( _tab, [@CONGESTION] > 5 ) )

vyiruanmsft_0-1731309432118.png

Best Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Chema_Ortega_Ga ,

I created a sample pbix file(see the attachment), please check if that is what you want.

Users CONGESTION = 
VAR _tab =
    SUMMARIZE (
        'GCC_COSTS AUTO_COST_OUTPUT',
        'GCC_COSTS AUTO_COST_OUTPUT'[User],
        "@CONGESTION", CALCULATE ( SUM ( 'GCC_COSTS AUTO_COST_OUTPUT'[CONGESTION] ) )
    )
RETURN
    COUNTROWS ( FILTER ( _tab, [@CONGESTION] > 5 ) )

vyiruanmsft_0-1731309432118.png

Best Regards

Hi v-yiruan-msft,

 

Thanks a lot! I think you've worked it out. SOOO MUCH APPRECIATED!!!!

 

Chema

 

Thanks a lot. Best regards!

 

Chema Ortega

 

 

Ritaf1983
Super User
Super User

Hi @Chema_Ortega_Ga 

Please provide a workable sample data and your expected result from that. It is hard to figure out what you want to achieve from the description alone.  

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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.