Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

How do we convert this Qlikview expression into power bi dax

Sum(aggr(rangesum( above( sum( [WeeklyChartData.% Actual]), 0,4)), WeeklyChartData.WeeklyChartDataKey))

3 REPLIES 3
eliasayyy
Memorable Member
Memorable Member

and if i may ask , why are you integrating from qlikview to powerbi?

eliasayyy
Memorable Member
Memorable Member

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]'
)

 

Anonymous
Not applicable

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.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.