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

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

Reply
CR
Resolver II
Resolver II

Cumulative count with percent in Y-axis

Hi,

 

I have 2 measures for cumulative lines, one for the ACTUAL, one the FORECAST

Cumul Actual = 
CALCULATE (COUNT(MASTER[Document Reference]);
    FILTER(ALLSELECTED('MASTER');'MASTER'[Date]<=MAX('MASTER'[Date]));
    FILTER(ALLSELECTED('MASTER');'MASTER'[Status Date]="Issued"))

Cumul Forecast = 
CALCULATE (COUNT(MASTER[Document Reference]);
    FILTER(ALLSELECTED('MASTER');'MASTER'[Date]<=MAX('MASTER'[Date]));
    FILTER(ALLSELECTED('MASTER');'MASTER'[Status Date]="Forecast"))

And t works fine when I display them in a visual:

1.png

But I need to display the % in the Y axis.

Note: pencent is the sum of ACTUAL and FORECAST.

 

Anybody knows how it could be set up ?

 

Thanks in advance because I'm lost.

 

Regards,

CR

 

1 ACCEPTED SOLUTION
CR
Resolver II
Resolver II

solved!

 

I've created additional measures to better understand what I need:

 

One measure cumuating the values Issued 

Cumul Issued = 
CALCULATE (COUNT(MASTER[Document Reference]);
    FILTER(ALLSELECTED('MASTER');'MASTER'[Engineering Progress]="Issued");
    FILTER(ALLSELECTED('MASTER');'MASTER'[Date]<=MAX('MASTER'[Date])))

One measure cumulating the values Issued and Not Issued (Forecast) (<> "")

Cumul Issued + Forecast = 
CALCULATE (COUNT(MASTER[Document Reference]);
    FILTER(ALLSELECTED('MASTER');'MASTER'[Engineering Progress]<>"");
    FILTER(ALLSELECTED('MASTER');'MASTER'[Date]<=MAX('MASTER'[Date])))

One measure counting all the references (100%)

Cumul - ALL = 
CALCULATE (COUNT(MASTER[Document Reference]);
    FILTER(ALLSELECTED('MASTER');'MASTER'[Engineering Progress]<>""))

Then, I created 2 main measures.

One measure cumulating the issued + forecast as percentage

Cumul issued + forecast = [Cumul issued + forecast]/[Cumul - ALL]

One measure cumulating the issued as percentage

Cumul issued = [Cumul issued]/[Cumul - ALL]

 

Then:

- I applied the format Percentage to these 2 main measures

- I put these 2 main measures in the visual

- I actived the option Show Secondary (Y-axis block)

 

Regards,

CR

View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @CR 

Do you mean that add a new measure

measure=[Cumul Actual] / [Cumul Forecast]

 

and then drag it into visual?

If so, [Cumul Actual] and [Cumul Forecast] value is so big but percent value will be very small, It will looks like this:

13.JPG

I suggest you use Line and Column Mixed chart, drag percent value as a column value.

If not your case, please share some sample data with the expected output.

 

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
Super User

@CR what you mean by sum, isn't the % is actual divided by forecast?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Indeed @parry2k but I don't know how to update correctly the measure and / or how to use it in the visual... 

CR
Resolver II
Resolver II

solved!

 

I've created additional measures to better understand what I need:

 

One measure cumuating the values Issued 

Cumul Issued = 
CALCULATE (COUNT(MASTER[Document Reference]);
    FILTER(ALLSELECTED('MASTER');'MASTER'[Engineering Progress]="Issued");
    FILTER(ALLSELECTED('MASTER');'MASTER'[Date]<=MAX('MASTER'[Date])))

One measure cumulating the values Issued and Not Issued (Forecast) (<> "")

Cumul Issued + Forecast = 
CALCULATE (COUNT(MASTER[Document Reference]);
    FILTER(ALLSELECTED('MASTER');'MASTER'[Engineering Progress]<>"");
    FILTER(ALLSELECTED('MASTER');'MASTER'[Date]<=MAX('MASTER'[Date])))

One measure counting all the references (100%)

Cumul - ALL = 
CALCULATE (COUNT(MASTER[Document Reference]);
    FILTER(ALLSELECTED('MASTER');'MASTER'[Engineering Progress]<>""))

Then, I created 2 main measures.

One measure cumulating the issued + forecast as percentage

Cumul issued + forecast = [Cumul issued + forecast]/[Cumul - ALL]

One measure cumulating the issued as percentage

Cumul issued = [Cumul issued]/[Cumul - ALL]

 

Then:

- I applied the format Percentage to these 2 main measures

- I put these 2 main measures in the visual

- I actived the option Show Secondary (Y-axis block)

 

Regards,

CR

Helpful resources

Announcements
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.

Top Solution Authors