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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.