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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.