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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

v-yetao1-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors