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
Galat198
Helper IV
Helper IV

Dax: Calculate page row by page location

Hi,

I have products on a page, each row has 3 products
I know the general position of the product on the page
How can I calculate and mark which row a product is in?

For example products in position 1-3 is the first row, 4-6 is the second row.....
Use IF or SWITCH is not suitable because there are lots of products and rows.

Galat198_0-1629796207060.png

 



1 ACCEPTED SOLUTION

@Galat198 , Try

row = Quotient([page position]+2 ,3)

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Galat198 , based on what I got ,

A new column in date should help

row = Quotient([page position],3)

@amitchandak 

Galat198_0-1629800269123.pngGalat198_1-1629800299042.png

It makes a mistake of two positions

@Galat198 , Try

row = Quotient([page position]+2 ,3)

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.