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
JosueAbreu
Frequent Visitor

Table with only filtered data

Hi,

 

I have a table and text filters. I need a table who show me data only if i put a text in the filter. Is it possible?

 

Here i have a table showing all data when i haven't put text in the filters. 

 

JosueAbreu_0-1664887493986.png

 

2 ACCEPTED SOLUTIONS

Hi,

 

If your eally want to implement security, wouldn't it be better to use RLS ?

With RLS you can create roles and assign to each role, which lines are filtered or not.

RLS works only if you publish your report to PBI service, so I don't know if this is possible for you (licence or not and which one).

Hope it helps

View solution in original post

AbbasG
Memorable Member
Memorable Member

Hello @JosueAbreu this can be achieved through the ISFILTERED function.
Here is the URL - https://learn.microsoft.com/en-us/dax/isfiltered-function-dax
Here is my sample solution if it helps - https://1drv.ms/u/s!ArEx6MabNbWofWqfh3B187qcxWI?e=G0uvOg

View solution in original post

9 REPLIES 9
AbbasG
Memorable Member
Memorable Member

Hello @JosueAbreu this can be achieved through the ISFILTERED function.
Here is the URL - https://learn.microsoft.com/en-us/dax/isfiltered-function-dax
Here is my sample solution if it helps - https://1drv.ms/u/s!ArEx6MabNbWofWqfh3B187qcxWI?e=G0uvOg

Thanks, @Abbas 

 

I'm new in Power BI and i understood your solution. Thanks for example.

@JosueAbreu  I am glad to hear this!, please accept it as a solution to help others.

JosueAbreu
Frequent Visitor

The solution i found was put a button with action to navigate between pages . Then, i show data previosly filtered.

JosueAbreu_0-1665146153302.png

But it doesn't prevents the user to go to next page without filter the data.

Hi,

 

If your eally want to implement security, wouldn't it be better to use RLS ?

With RLS you can create roles and assign to each role, which lines are filtered or not.

RLS works only if you publish your report to PBI service, so I don't know if this is possible for you (licence or not and which one).

Hope it helps

Thanks, AilleryO.

 

I didn't know RLS. I will read about.

AilleryO
Memorable Member
Memorable Member

Hi,

 

Maybe you can try something with HASONEFILTER to test if you have a filter active,

if no filter is active then using a fake RC number could return nothing...

Hope it helps

Thanks, AileryO.

 

Using a fake RC don't solve my problem. I have data which i don't wanna to show to everyone. So, if i erase the fake RC the Dashboard will show all data again, right?

Hi,

I was thinking that you could build a dynamic table (to show in your visual), with a test using HASONEFILTER.

Table = 
VAR MyFilter = IF( HASONEFILTER(XXX), valueFilter , FakeValue)
RETURN
FILTER( Table , Param = MyFilter )

So if there is a filter active, use the active filter, otherwise a fake filter to show nothing.

I let other member add their contribution to solve this, but this might be a possibllity.

 

Let us know

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!

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.

Top Solution Authors
Top Kudoed Authors