Forum Discussion

shraddha12's avatar
shraddha12
New Member
3 years ago

power Bi

This is a measure which is created in power BI but I am facing the storage error-

Required = VAR CurrentRow = 'Hybrid'[total_engine_hours] VAR PreviousRowValue = CALCULATE(MAX('Hybrid'[total_engine_hours]), FILTER('Hybrid', 'Hybrid'[total_engine_hours] < CurrentRow)) VAR PreviousRequired = CALCULATE(SUMX(FILTER('Hybrid', 'Hybrid'[total_engine_hours] = PreviousRowValue), 'Hybrid'[total_engine_hours] - PreviousRowValue), FILTER('Hybrid', 'Hybrid'[total_engine_hours] <= PreviousRowValue)) RETURN IF(ISBLANK(PreviousRowValue), CurrentRow, IF(CurrentRow >= PreviousRowValue, CurrentRow - PreviousRowValue + PreviousRequired, PreviousRequired))

 

Can you please help solve this ?

 

2 Replies

  • shraddha12 , Seem like column to me.

     

    Break into two columns

     

    PreviousRowValue =
    Required = VAR CurrentRow = 'Hybrid'[total_engine_hours]
    return
    CALCULATE(MAX('Hybrid'[total_engine_hours]), FILTER('Hybrid', 'Hybrid'[total_engine_hours] < CurrentRow))

     

     

    Current =
    VAR PreviousRequired = CALCULATE(SUMX(FILTER('Hybrid', 'Hybrid'[total_engine_hours] = PreviousRowValue), 'Hybrid'[total_engine_hours] - PreviousRowValue), FILTER('Hybrid', 'Hybrid'[total_engine_hours] <= PreviousRowValue))

    RETURN IF(ISBLANK(PreviousRowValue), CurrentRow, IF(CurrentRow >= PreviousRowValue, CurrentRow - PreviousRowValue + PreviousRequired, PreviousRequired))

     

    Increase Cahe Data management to 8-10 GB supported by RAM and Hard Disk

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi shraddha12 ,

    Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

    If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

    How to Get Your Question Answered Quickly 

    Regards,

    Xiaoxin Sheng