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
Anonymous
Not applicable

dynamic ranges in columns and rows

I got the dynamic table with sales by price and by size.

Sales is calculated between the points selected on slicers.

This works fine but doesnt not look good. Instead of values in rows and column, I would like to have ranges.

For instance:

Instead of size =111, I would like to have 0-111 in column

Instead of price = 33, I would like to have 22-33 in rows

 

Column and rows values are dynamic based on slicer's selection

Capture11.PNG

 

As I know dynamic columns are not supported but maybe is a workaround?

Any unconventional ideas very appreciated

 

6 REPLIES 6

You need to create a RANGE Table, something like this

0 0-22

0-22

0-22

0-22

0-22

0-22

0-22

...

and then create a relationship in both ways, between Table[PRICE} and NewTable[column1]

and then do the same with the SIZE column creating another table.

Anonymous
Not applicable

What is the first column?:

0

1

2

3

...

 

 

yeah

Column1
 0 
Column2
0-22

Anonymous
Not applicable

@rafaelmpsantos But I do not understand what is a purpose of this and what it is exactly.

 

I thinking of doing a crossjoin SIZE with SIZE

Capture.12PNG.PNG

but it is not fully working:

Capture14.PNG

here is the data model:

Capture13.PNG

Can you send me this pbi file?

Anonymous
Not applicable

At this moment I can place data here:

 

fact table

yearproductcolorsizesales valuevolume
2017chairblack1207002
2017chairwhite1207013
2017chairyellow1307024
2017chairgreen1407035
2017chairbrown1507046
2017chairfiolet1607057
2017tableblack1207068
2017tablewhite1207079
2017tableyellow13070810
2017tablegreen14070911
2017tablebrown15071012
2017tablefiolet16071113
2018chairblack12030014
2018chairwhite12030115
2018chairyellow13030216
2018chairgreen14030317
2018chairbrown15030418
2018chairfiolet16030519
2018tableblack12030620
2018tablewhite12030721
2018tableyellow13030822
2018tablegreen14030923
2018tablebrown15031024
2018tablefiolet16031125
2018tablered17031226

 

price table (from 1 to 9999)

PRICE
1
2
3
4
5
6
7
8
9
10
11
12

 

size table (from 1 to 9999)

SIZE
1
2
3
4
5
6
7
8
9
10
11
12

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.