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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
AntonioStyrov
Frequent Visitor

How to get Measure work for Slicer Position "all"

Hi community. 

 

It my the first post. I really got a lot of help from all topics creating my report.  And I stucked at very trivial point. 

 

When my slicer is in exact position -  measure is working correctly calculating "UserTestInScope". When the slicer is not aplied which means count all it returns the first available Value when User is "Blank" 

 

There are screens and code example below: 

 

#UserTestInScope = 
VAR Reference_Mail = SELECTEDVALUE('User'[displayName])
VAR Reference_Phase = SELECTEDVALUE(Phases[ExecutionReference_TestSuite.TestPlanTitle])
VAR Result = 
    COUNTROWS(FILTER(
            ALL('UserTestRuns'),
            AND(Reference_Mail = 'UserTestRuns'[AssignedTo.UserName], Reference_Phase = 'UserTestRuns'[TestSuite.TestPlanTitle])
        ))
RETURN Result

 

 Power BI 1.PNGPower BI 2.PNG

 

displayName field  slicer I tried to get from User table and from UserTestRuns Table. 

 

I feel that I'm missing some stupid thing in table connections or in measure. Can you help me with it? Probably there is some tip.

 

Link to pbix and the data included: Link 

 

Kind regards and many thanks in advance,

Anton

2 REPLIES 2
AntonioStyrov
Frequent Visitor

Hi Aisa. 

 

It took some time to clean up the data. The link is attached in original post

Anonymous
Not applicable

Hi @AntonioStyrov 

From the information you provided, I have no way to determine the exact cause. Can you provide your pbix file for reference?

 

Best Regards,
Community Support Team _ Ailsa Tao

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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