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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Tung_Nguyen2402
Frequent Visitor

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?

 

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors