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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

How to combine OFFSET and PARTITIONBY within many groups have different records by using DAX

Hello everyone,

I face to this problem when I want to lag 1 rank each row for each group, but when I try to use offet I don't know how to implement this. You can see the detail in the picture my solution. Please help me because I'm not familiar with DAX

Correct Offset.png

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

why did you use that if function?

wdx223_Daniel_0-1677742616504.png

and should it be ordered by date?

 

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

why did you use that if function?

wdx223_Daniel_0-1677742616504.png

and should it be ordered by date?

 

Anonymous
Not applicable

Yes, I want to order by Type and Date too, if same Type then sort by Date. Do you have any idea for order by both columns?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.