The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Sum(aggr(rangesum( above( sum( [WeeklyChartData.% Actual]), 0,4)), WeeklyChartData.WeeklyChartDataKey))
and if i may ask , why are you integrating from qlikview to powerbi?
converting this to a DAX expression for Power BI involves a different approach since DAX doesn't work exactly like QlikView
create a calculated column or a measure that identifies the 4-week rolling sum for each row in your table.
FourWeekRollingSum =
VAR CurrentWeek = MAX('WeeklyChartData'[WeeklyChartDataKey])
RETURN
SUMX(
FILTER(
ALL('WeeklyChartData'),
'WeeklyChartData'[WeeklyChartDataKey] <= CurrentWeek && 'WeeklyChartData'[WeeklyChartDataKey] > CurrentWeek - 4
),
'WeeklyChartData[% Actual]'
)
Actually its not worked because of WeeklyChartDataKey is having Text datatype so, when I am running this measure it gives error for text and value comparison.
do u have any idea on this.