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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.