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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
raimon
Resolver II
Resolver II

How to keep one column constant irrespective of filters applied

Hi All, 

 

I have data like below - 

 IndiaUKUSA
Sports5%10%3%
Education5%10%3%
Health5%10%3%

 

How do I ensure if country filter is selected, "India" is always shown.

1 ACCEPTED SOLUTION

Hi @raimon ,

 

Please create the following table.

 

Country = CALCULATETABLE ( DISTINCT ( 'Table'[Country] ), 'Table'[Country] <> "India" )

vkkfmsft_0-1639990095806.png

 

Then create measure:

 

Measure = 
COUNTROWS (
    INTERSECT (
        VALUES ( 'Table'[Country] ),
        UNION ( Country, {"India"} )
    )
)

 

And filter Country column by Measure.

 

vkkfmsft_1-1639990195819.png

 

Result:

vkkfmsft_3-1639990241855.png  vkkfmsft_2-1639990225248.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
raimon
Resolver II
Resolver II

@v-kkf-msft I am amazed by the solution. Thank you.

It feels so good to explore new things out there. Empowering to know what all is possible. 

amitchandak
Super User
Super User

@raimon , Add +0 to the measure or use this option

 

ShowItemwithoutdata.JPG

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak this is what I am looking for - 

1) 

raimon_0-1639572877308.png

2) 

raimon_1-1639572896981.png

 

 

3) 

raimon_2-1639572916331.png

 

Hi @raimon ,

 

Please create the following table.

 

Country = CALCULATETABLE ( DISTINCT ( 'Table'[Country] ), 'Table'[Country] <> "India" )

vkkfmsft_0-1639990095806.png

 

Then create measure:

 

Measure = 
COUNTROWS (
    INTERSECT (
        VALUES ( 'Table'[Country] ),
        UNION ( Country, {"India"} )
    )
)

 

And filter Country column by Measure.

 

vkkfmsft_1-1639990195819.png

 

Result:

vkkfmsft_3-1639990241855.png  vkkfmsft_2-1639990225248.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

this is impressed!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.