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

Find distinct sum from filtered column

Hi i am trying to get a sum from the distinct values in each level.

Level4 contains

F&R Øst
F&R Vest

Level5 contains 

Indbygning
Eftersyn IC4
Infrastruktur Vest
Lærlinge
St. eftersyn IC3
Eftersyn IC3
Reparationer IC4

for each of these i want the sum, which i tried to illustrate underneath.

 

Hope someone can help with my problem.

damj_0-1667904769186.png

 

 

6 REPLIES 6
mangaus1111
Solution Sage
Solution Sage

Hi @damj ,

you can use this

Column = 
SUMX(
    FILTER(
        'Facts2',
        'Facts2'[Date] = EARLIER('Facts2'[Date]) && 'Facts2'[Level4] = EARLIER('Facts2'[Level4])
    ),
'Facts2'[Employes]
)

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

is it possible to do for Month and find the distinct value for level 5 and sum it together for level 4?

Is it ok a measure?

Is it possible to show both? 

mangaus1111
Solution Sage
Solution Sage

Hi @damj ,

measure or calculated column?

If you need a measure I think that you can use this one:

CALCULATE(

                SUM('Table'[Employes]),

               ALL('Table'[Level5])

)

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

Hi
I need it for a calculated column.

 

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.