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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Bokazoit
Responsive Resident
Responsive Resident

A simple average ??

This is an example of my data and current output:

Bokazoit_0-1677069876916.png

BoNummer is a unique key.

My current measure is this:

Time from creation to death in Years = 
    CALCULATE (
            VAR TestamentCreationDate = MAX( FactArvesager[Testament creation date] )
            VAR DeathDate = MAX( FactArvesager[Death of testament creator] )

            RETURN

            DATEDIFF( TestamentCreationDate , DeathDate , YEAR ),
            USERELATIONSHIP(DimDato[DatoKey], FactArvesager[Date of start] )
        )


As can be seen it works fine on row level, but I need to find the Average on the 'Date of start' = 53

I think I have complicated things in my head :.(

Plz help

0 REPLIES 0

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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