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
Anonymous
Not applicable

Another Circular Dependency & Measure returns Last value Anyhelp would be appreciated

Hi Im building a HSE Dashboard and ive only gotten one little hiccup to overcome its building a TRIFR Rate which is more or less a number that we need to know constantly.

 

The calculated column i get a circular dependency error on it on is the following

 

Moving12TRIFR = CALCULATE(SUMX( ALLSELECTED(TRIFR),[Total Recordable Injuries])/SUMX( ALLSELECTED(TRIFR), 'TRIFR'[Total Man Hours])*1000000,
    DATESINPERIOD (
        'Total Recordable Injuries'[Date].[Date],
        LASTDATE ( 'Total Recordable Injuries'[Date] ),
        -12,
        MONTH
    )
)

 And if i use the code on a measure, it only shows the last calculation rather than the value of each row 

 

Any help would be appreciated so i can finish this job off.

2 REPLIES 2
Anonymous
Not applicable

Also should say the following measure works however i would like it to be over the life of data not 12 months?

 

 

TRIFRv102 = (
        CALCULATE (
            SUM ( TRIFR[MTIIncidents] ) + SUM ( TRIFR[LTIIncidents] )
                ,
            DATESINPERIOD ( TRIFR[Date], LASTDATE ( 'TRIFR'[Date]  ), -12, MONTH )
        )
            * 1000000
    )
        / CALCULATE (
            SUM ( TRIFR[Total Man Hours] ),
            DATESINPERIOD ( TRIFR[Date], LASTDATE ('TRIFR'[Date]  ), -12, MONTH )
        )

Hi @Anonymous ,

Does the measure just calculate the values of last 12 months? I tried it in my sample. And it can calculate all the previous values.  Can you please share some sample data and the expected result? Then we will understand your problem clearly.

5.PNG

How to Get Your Question Answered Quickly

 

Best Regards,

Xue Ding

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

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

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.

Top Solution Authors