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
lg1551
Resolver II
Resolver II

Dax Help For Unique Table Creation

I have a measure that sums values for 5 product categories.


I want to take the MIN of that measure, the MAX of that measure, and create a table.


The table will contain the MIN value as the bottom row (or top row) and the MAX value as top row (or bottom row). I need a row for each value in between so that all numbers between the MIN and the MAX are accounted for and represented in the table.


Example data:

Category     Value

Category 1    20

Category 2    18

Category 3    15

Category 4    10

Category 5    02


Table to Generate:


Value

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@lg1551 , a new table

 

= generateseries(Min(Category[Value]) ,Max(Category[Value]) ,1)

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@lg1551 , a new table

 

= generateseries(Min(Category[Value]) ,Max(Category[Value]) ,1)

Thank you!

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.