Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
KSumanth
Frequent Visitor

remove filters or all except logic not working properly

we are trying to create  how many recognitions are sent in a month and we have to check whther the recognitions sent are meeting the required count or not. 

I am trying to calculate 
Sent % =
/*DIVIDE([Monthly Recognitions Sent],[Total FTE])*/
VAR Numerator= CALCULATE( COUNT('Received by Team'[Recognition_PK ID]),
                                    'Received by Team'[Nominator Portfolio (sent)]<>"",
                                     'calendar'[Rank]=1 // which identifies latest month
                                    )
VAR Denominator =CALCULATE(SUM(FTE_Sheet[FTE Breakdown]), REMOVEFILTERS('FTE_Sheet'[Portfolio]))
RETURN
 DIVIDE(Numerator,Denominator)

Data in FTE Sheet
PortfolioFTE Breakdown
A9
B21
C30
D23
E4
F3
TOTAL90

My Matrix table( which has 2 daxs )
PortfolioMonthly Recognitions Sent monthly Sent%
A50.06
B30.03
C  
D50.06
E  
F  
Total130.14
 Here in total 13/90 = 0.14 which is correct, but for A portfolio its should be 5/9= 0.55 but it is calculating 5/90= 0.06. 
All except function is also not showing the right value. Can anyone provide the solution for this logic.
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, I am not sure how your semantic model looks like, but please try something like below if it works.

 

 

Sent % =
VAR Numerator =
    CALCULATE (
        COUNT ( 'Received by Team'[Recognition_PK ID] ),
        'Received by Team'[Nominator Portfolio (sent)] <> "",
        'calendar'[Rank] = 1
    )
VAR Denominator =
    SUM ( FTE_Sheet[FTE Breakdown] )
RETURN
    DIVIDE ( Numerator, Denominator )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
KSumanth
Frequent Visitor

Thanks Jihwan_kim for the solution, This logic works

Jihwan_Kim
Super User
Super User

Hi, I am not sure how your semantic model looks like, but please try something like below if it works.

 

 

Sent % =
VAR Numerator =
    CALCULATE (
        COUNT ( 'Received by Team'[Recognition_PK ID] ),
        'Received by Team'[Nominator Portfolio (sent)] <> "",
        'calendar'[Rank] = 1
    )
VAR Denominator =
    SUM ( FTE_Sheet[FTE Breakdown] )
RETURN
    DIVIDE ( Numerator, Denominator )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.