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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
lovedata
Frequent Visitor

Fill down with Dax in table visualization

My data looks like the below. As can be seen in the snippet below, Metered_KWH column is only measured every four hours period in 24 hours. Hence I want to fill down the blank values and multiply them by the Consumption Rate values.

 

lovedata_0-1651705455323.png

 

 

 

My attempt is below but no luck yet.

 

 

 

 

 

 

 

 

 

Hist Conp KWh = SUMX('Total Conp','Total Conp'[Metered_KWH])

Consumption Rate = DIVIDE(SUMX(HHR,HHR[Metered KWh]),CALCULATE(SUMX(HHR,HHR[Metered KWh]),ALL('Time - 48 Trading Period'[Time])))

Distributed Metered KWH = MAXX(
    FILTER(
        ALL('ToU_Conp_48h_period'[Time]),
        'ToU_Conp_48h_period'[Time]=MAX('ToU_Conp_48h_period'[Time])),
        [Hist Conp KWh])

 

 

 

 

 

 

 

 

 

 

Any help would be much appreciated.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @lovedata,

Please try to update the formula of measure [Distributed Metered KWH ] as below and check it can return the correct result...

Distributed Metered KWH =
MAXX (
    FILTER (
        ALLSELECTED ( 'ToU_Conp_48h_period' ),
        'ToU_Conp_48h_period'[Time] = MAX ( 'ToU_Conp_48h_period'[Time] )
    ),
    [Hist Conp KWh]
)

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @lovedata,

Please try to update the formula of measure [Distributed Metered KWH ] as below and check it can return the correct result...

Distributed Metered KWH =
MAXX (
    FILTER (
        ALLSELECTED ( 'ToU_Conp_48h_period' ),
        'ToU_Conp_48h_period'[Time] = MAX ( 'ToU_Conp_48h_period'[Time] )
    ),
    [Hist Conp KWh]
)

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

danextian
Super User
Super User

Hi @lovedata ,

 

Please post a sample data or sample pbix.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523#M6071... 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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