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

Problem using FILTER with ALLSELECTED

 

 

Hello everyone!

I need some help here...
Currently I have a measure that calculates the percentage from grand total (this works perfectly).

danielmorais_0-1670279344938.png

 

I use the same measure (above) in another measure where I do a virtual relationship with a auxiliar table, to use dynamic categories.

The problem is that when I apply a FILTER formula, the result is always 100%.

danielmorais_2-1670279781143.png

 

Maybe its easy to solve but I can't find a solution.

 

2 REPLIES 2
danielmorais
Frequent Visitor

@v-yetao1-msft I've tried this way but it doesn't work.

 

I created a pbix that I am attaching here. 

 

PBIX FILE EXAMPLE 

v-yetao1-msft
Community Support
Community Support

Hi @danielmorais 

Maybe you can add ALL() in your measure .The current line is returned without ALL(), and the context is returned with ALL().

Ailsamsft_0-1670291372329.png

ALL function (DAX) - DAX | Microsoft Learn

ALLSELECTED function (DAX) - DAX | Microsoft Learn

 

Best Regards,
Community Support Team _ Ailsa Tao
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.

Top Solution Authors