Reply
cebd_31
Regular Visitor
Partially syndicated - Outbound

ALLSELECTED and ALLEXCEPT Together?

Hello Community,

 

I wanted to see if its possible to create a Calculation that allows me to do the following:

 

When filtering By Name in a Slicer, I want the percentage to be shown respective to the Name of the Person Selected on the Slicer and be a Percentage calculated by Individual, not a Percentage of total:

 

Without filtering in the slicer I am getting:

 

Chart 1.png

 

When Filtering I am getting a the percentage of the TOTAL amount that it represents:

 

Chart 2.png

 

Instead I would like it to be the Percentage of the Orders by Name.

 

 

I have the below calculation:

 

% PD = DIVIDE(COUNT(Table2[Open Purchases Days Past Statistical Ship Date]),CALCULATE(COUNT(Table2[Open Purchases Days Past Statistical Ship Date]),ALLEXCEPT(Table2,Table2[Refresh_TimeStamp].[Day])))
 
Any help will be appreciated.
1 ACCEPTED SOLUTION
DavisBI
Solution Specialist
Solution Specialist

Syndicated - Outbound

Hi, @cebd_31 ,

 

Based on the information you provide, you just need to add the "Name" to AllExcept()

 

% PD = DIVIDE(COUNT(Table2[Open Purchases Days Past Statistical Ship Date]),CALCULATE(COUNT(Table2[Open Purchases Days Past Statistical Ship Date]),ALLEXCEPT(Table2,Table2[Refresh_TimeStamp].[Day],<name>)))

  

Mark this post as solution if this helps, thanks!

View solution in original post

1 REPLY 1
DavisBI
Solution Specialist
Solution Specialist

Syndicated - Outbound

Hi, @cebd_31 ,

 

Based on the information you provide, you just need to add the "Name" to AllExcept()

 

% PD = DIVIDE(COUNT(Table2[Open Purchases Days Past Statistical Ship Date]),CALCULATE(COUNT(Table2[Open Purchases Days Past Statistical Ship Date]),ALLEXCEPT(Table2,Table2[Refresh_TimeStamp].[Day],<name>)))

  

Mark this post as solution if this helps, thanks!

avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)