The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
14 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |