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
BigLo
Helper II
Helper II

ALLExcept in Table Visual

Hi,

 

I've a table visual where I want to display the values by people. I have 2 columns, the first managed with a slicer (sumCat1), another which represents the sum of the last month (SumCat1Month).

 

BigLo_0-1620282054685.png

 

Step 1: The SumCat1Month work great but is it possible to distribute the measure to each person? Here I've the sum for all people on each line. I thought the exception on the idname would allow me to do this.

 

Step2: is it possible to use a filter on a table linked with an allExcept?
In my measure 'SumCat1' I filter on the Category table 'Filter (Category, Category [Category] = 1))'.  In my measure 'SumCat1Month' I selected the SubCategory because I cannot use a linked table.

Visual Example

BigLo_1-1620282963339.png

 

Data

BigLo_2-1620283107710.png

 

1 ACCEPTED SOLUTION

Hi @BigLo ,

 

Please try this:

SumCat1Month = CALCULATE(SUM('Values'[Value]),Filter('Values',('Values'[SubCategory]=1 || 'Values'[SubCategory]=2) && 'Values'[Date]>DATE(2021,5,1)),ALLEXCEPT('Name','Name'[Id]))+0

V-lianl-msft_0-1620698773543.png

 

 

Best Regards,
Liang
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

3 REPLIES 3
BigLo
Helper II
Helper II

 

The result of SumCat1Month is the sum for all, not for each person.

BigLo_1-1620286432244.png

I share pbix

PBIX 

 

Hi @BigLo ,

 

Please try this:

SumCat1Month = CALCULATE(SUM('Values'[Value]),Filter('Values',('Values'[SubCategory]=1 || 'Values'[SubCategory]=2) && 'Values'[Date]>DATE(2021,5,1)),ALLEXCEPT('Name','Name'[Id]))+0

V-lianl-msft_0-1620698773543.png

 

 

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

 

amitchandak
Super User
Super User

@BigLo ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.

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.