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
Marcin
Helper V
Helper V

Filter by measure

Hi,

 

I need to build report in Direct Query Connection with Analysis Services on Azure Cloud. In this report I need to filter existing measure Hours ( from timsheet ) for each user that is using this report. ( RLS in SSAS is not posssible in this case ).

I made an idea to do that with new measure ( now its possible to use measures in Direct Query ) and 

Users[Email]))=LOWER(USERNAME(). 

But I need help to do that in DAX Measure for this report, I will be gratefull for help with this case 

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Marcin

 

I think you can add a tag measure like:

 

Tag = IF(MAX(Users[Email])=LOWER(USERNAME()),1,0)

 

Then use above measure in visual level filter.

 

Regards,

View solution in original post

3 REPLIES 3
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Marcin

 

I think you can add a tag measure like:

 

Tag = IF(MAX(Users[Email])=LOWER(USERNAME()),1,0)

 

Then use above measure in visual level filter.

 

Regards,

Hi,

 

I have a question, the measure works correctly, but the problem is when I publish any report containing this measure on Power BI serivce , tile's data are not refreshing dispite Live Connection to SSAS Tabular Model. Even when I clicki refresh button 

 

In this case when I want to show fresh data with my tiles a need to download pbx file to my computer, click refresh and publish it again 😞 

That woorks, thank's a lot for help. 

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.