cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to generate series based on measure values

Hi, 

 

I've created a measure and i would like to create a what-if parameters based on values of "delai ". 

How can I generate series in function of values calculated by my measure?

achhay_1-1600262549067.png

 

here, my measure range is between -59 and 273. But, that measure is updated everyday so the range could change (for example, -70 to 300) 

 

Thank you for your help,

Andre

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Would you please try the calculated table below:

 

Range Table =
GENERATESERIES (
    MINX (
        SUMMARIZE ( 'Table', 'Table'[Column], "_measure", [measure] ),
        [_measure]
    ),
    MAXX (
        SUMMARIZE ( 'Table', 'Table'[Column], "_measure", [measure] ),
        [_measure]
    )
)

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , I was able to create a new table based on another table

 

Table = GENERATESERIES(min(Customer[Age]) ,max(Customer[Age]))
Anonymous
Not applicable

@amitchandak it doesn't work because my values come from a measure. Not a value from a table.

 

CNENFRNL
Super User
Super User

@Anonymous Since you have already definitive range, why not generate a series directly?

Range Table = GENERATESERIES( -70, 300 )

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

Hi @CNENFRNL ,

I would like to generate a table dynamically.

Hi @Anonymous ,

 

Would you please try the calculated table below:

 

Range Table =
GENERATESERIES (
    MINX (
        SUMMARIZE ( 'Table', 'Table'[Column], "_measure", [measure] ),
        [_measure]
    ),
    MAXX (
        SUMMARIZE ( 'Table', 'Table'[Column], "_measure", [measure] ),
        [_measure]
    )
)

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors