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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Generateseries with a percentage

Hi all, I'm currently following a tutorial to use measures as a filter (video here). I'm running into a DAX issue when trying to use GENERATESERIES on a measure that I have. 

At around 2:25 in the video, the presenter uses a measuer as the max part of GENERATESERIES. I have done this with 2 other measures with a simple SUM measure, but this measure I'm currently trying requires a DIVIDE. This is throwing an error to GENERATESERIES. Here is my measure: 

Change % = 
DIVIDE(
    SUM('table1'[Numerator]),SUM('table1'[Denominator]),"-"
)

I'm formatting this as a percentage. 

When I use this in a table create I get this error: 

Synik_0-1622841870233.png


Obviously this is because I'm tryign to pass a percentage into GenerateSeries. I'm not sure how to fix this when I need the series to give a range of percentages. 

Any ideas with this? Appreciate the help!




1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

I don't think this has to do with percentage but rather the text data type you use for the third argument of DIVIDE, "-".

 

Try removing that or using 0 instead. You can format a zero as something else when you are displaying, but you don't want strings inside your math like that.

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

I don't think this has to do with percentage but rather the text data type you use for the third argument of DIVIDE, "-".

 

Try removing that or using 0 instead. You can format a zero as something else when you are displaying, but you don't want strings inside your math like that.

Anonymous
Not applicable

@AlexisOlson Great catch! I can't believe I missed that haha. 

I had to also play around with the incremental value to get it to work since its basing the value as a decimal. 
My code looks like this: 

Change % Number Filter = 
GENERATESERIES(0, [% Calc],0.0001)

 

Synik_1-1622844092860.png



Thank you! Accepting as solution!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.