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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ippman
Helper I
Helper I

DAX - YTD/Running : Stop summing up for repeated values in the reference column.

Hello!

I'm having trouble modifying my dax code for the running total measure "Test Active FTEs (YTD)" so that it doesn't sum the values that repeat in the column "TEST Active FTEs" as shown in the image below. Please advise.

 

Here is the pbix file : YTD/Running Count Issue.pbix 

 

 

TEST Active FTEs =
CALCULATE (
    DISTINCTCOUNT ( EMP_TRAN_FACT[HR Employee ID] ),
    EMP_TRAN_FACT[HR Employee Event Type] = "ACTIVE"
)

 

 

Test Active FTEs (YTD) =
CALCULATE (
    SUMX ( VALUES ( DIM_DATE[Month Id] ), CALCULATE ( [Test Active FTEs] ) ),
    DATESYTD ( DIM_DATE[Date] )
)

 

 

Cumilative Distinct Count by Month.png

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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