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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors