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
jvandyck
Helper IV
Helper IV

FTE, aggregate as sum on all dimensions except date. On date it should be average

An extract of the data looks like this:

sk_datumftesk_managementSK_Medewerker
20210331161814493
20210430161814493
20210531161814493
20210228161814493
20191031161814493
20191130161814493
20191231161814493
20200131161814493
20200229161814493
20200831161814493

The last 2 columns link to an employee dimension, and an org chart.

On these 2 dimensions, I would like to sum the FTE's. However on the date dimension, I would like to aggregate by average.

For your information, the date column will always contain one date value per month.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jvandyck , one of the ways. have a measure like this

averageX(values(Date[Date]), [Measure])

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@jvandyck , one of the ways. have a measure like this

averageX(values(Date[Date]), [Measure])

I did investigate further and got it to work now. My first try was the following formula:

FTE = AVERAGEX(values(Datum[Datum]), sum(FTE[teller])
This did not work.
My next try was 
FTE = AVERAGEX(values(Datum[Datum]), [Total FTE])
This does work! The difference is that total fte is a calculated measure on its own: sum(FTE[teller].
 
So what I did not interpret well, was that the sum aggregation of FTE had to happen in a calculated measure. Not sure I fully understand, but it probably has to do with the sequence of the calculations.

Thanks for your quick reply. I tried your suggestion but it does not seem to work. Here you can find a mock-up: https://www.dropbox.com/s/udqez5pngu2x5wn/Thuiswerk%20test.pbix?dl=0

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.