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
Joelraj08
Advocate II
Advocate II

DAX : Divide based on the selection of filtered

Hi all,

 

Good day!

 

please see the screenshot below.

 

In table 2, calculate based on table 1.

 

Department AB 310/1211 for C

dept. AB 336/1211 for B

dept. AB 565/1211 for A

 

If I filter the A, B, and C columns, then it comes up with

 

1211/1948 = 62.17% 

 

My ask is instead of this above calculation, If i filter A, then it should calculate with department dept. AB 565/1211 for A.

If it's possible, please help.

 

Thanks in advance!

 

 

 

Joelraj08_0-1678778003111.png

 

 

 

1 ACCEPTED SOLUTION
Joelraj08
Advocate II
Advocate II

Solution : 

% OF ABC = CALCULATE(COUNT('Column'[ID]),'Column'[Remarks]=SELECTEDVALUE('Column'[Remarks]))/CALCULATE(COUNT('Column'[ID]),ALLEXCEPT('Column','Column'[Business  Line]))

View solution in original post

1 REPLY 1
Joelraj08
Advocate II
Advocate II

Solution : 

% OF ABC = CALCULATE(COUNT('Column'[ID]),'Column'[Remarks]=SELECTEDVALUE('Column'[Remarks]))/CALCULATE(COUNT('Column'[ID]),ALLEXCEPT('Column','Column'[Business  Line]))

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.