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
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
v-yiruan-msft
Community Support
Community Support

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

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

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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... 










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


Proud to be a Super User!









"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
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.