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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
cristianml
Post Prodigy
Post Prodigy

GENERATESERIES based on a measure

Hi,

I want to create  GENERATESERIES based on a measure: 

 

cristianml_0-1652066690934.png

 

How can I  modify the measure to fix the error ?

Target =
VAR VAR1 = DIVIDE(([_Actual + CBP Rev]-[_Actual + Backlog Rev]), [_Actual + CBP Rev])
RETURN
GENERATESERIES(MIN(VAR1,MAX([VAR1])),.1)

 
Thanks

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @cristianml ,

If you want to generate series from the minum VAR1 value of the table to the maxmum VAR1 value of the table, you should modify it like this:

Target =
VAR VAR1 =
    DIVIDE (
        ( [_Actual + CBP Rev] - [_Actual + Backlog Rev] ),
        [_Actual + CBP Rev]
    )
RETURN
    GENERATESERIES (
        MINX ( ALL ( 'Table' ), VAR1 ),
        MAXX ( ALL ( 'Table' ), VAR1 ),
        .1
    )

Best Regards,
Community Support Team _ kalyj

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

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @cristianml ,

If you want to generate series from the minum VAR1 value of the table to the maxmum VAR1 value of the table, you should modify it like this:

Target =
VAR VAR1 =
    DIVIDE (
        ( [_Actual + CBP Rev] - [_Actual + Backlog Rev] ),
        [_Actual + CBP Rev]
    )
RETURN
    GENERATESERIES (
        MINX ( ALL ( 'Table' ), VAR1 ),
        MAXX ( ALL ( 'Table' ), VAR1 ),
        .1
    )

Best Regards,
Community Support Team _ kalyj

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

ribisht17
Super User
Super User

 

 

@cristianml 

 

Do you need MAX there?

Remove MAX and then TRY >> GENERATESERIES(MIN(VAR1,MAX([VAR Rev])),.1)

 

Regards,

Ritesh

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors