Forum Discussion
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.
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.
- Anonymous4 years ago
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
2 Replies
- danextianSuper 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#M607150 - AnonymousNot 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