Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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.
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
18 | |
15 | |
7 | |
5 |