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
SelflearningBi
Helper III
Helper III

Selectvalue with slicer

SelflearningBi_0-1666675951342.png

I have this measure. Now its get the correct result for each of them but while I apply the slicer with SELECT ALL, this measure doesnt get any result instead showing empyt. I would like to dispay when I select TWO paracel status will get these two status % and select all will get result as well. 

And also this measure, when I select in production/in transtion/received will coun the correct sample order 

SelflearningBi_0-1666676284158.png
Now its only counting the received sample. Can the NAME(TEXT) also change according to the filer selection? 

SelflearningBi_1-1666676366138.png

 

 

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @SelflearningBi ,

I have created a simple sample, but I cannot reproduce the issue.

Measure =
VAR _selectesample =
    CALCULATE (
        COUNT ( 'Table'[model name] ),
        FILTER (
            ( 'Table' ),
            'Table'[parcel status] = SELECTEDVALUE ( 'Table'[parcel status] )
        )
    )
VAR totalsampleorder =
    CALCULATE ( COUNT ( 'Table'[model name] ), ALL ( 'Table' ) )
RETURN
    DIVIDE ( _selectesample, totalsampleorder )

vpollymsft_0-1666750604741.pngvpollymsft_1-1666750618533.png

received sample no = COUNTROWS(FILTER('Table','Table'[parcel status]="Received"))

vpollymsft_2-1666750643296.png

If I have misunderstood your meaning, please provide your pbix file without privacy information and desired output with more details.

 

Best Regards

Community Support Team _ Polly

 

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

1 REPLY 1
v-rongtiep-msft
Community Support
Community Support

Hi @SelflearningBi ,

I have created a simple sample, but I cannot reproduce the issue.

Measure =
VAR _selectesample =
    CALCULATE (
        COUNT ( 'Table'[model name] ),
        FILTER (
            ( 'Table' ),
            'Table'[parcel status] = SELECTEDVALUE ( 'Table'[parcel status] )
        )
    )
VAR totalsampleorder =
    CALCULATE ( COUNT ( 'Table'[model name] ), ALL ( 'Table' ) )
RETURN
    DIVIDE ( _selectesample, totalsampleorder )

vpollymsft_0-1666750604741.pngvpollymsft_1-1666750618533.png

received sample no = COUNTROWS(FILTER('Table','Table'[parcel status]="Received"))

vpollymsft_2-1666750643296.png

If I have misunderstood your meaning, please provide your pbix file without privacy information and desired output with more details.

 

Best Regards

Community Support Team _ Polly

 

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

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.