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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
zoupie
New Member

need help with calculation

We want to calculate the % completed each month and use this value in the line value of a combination bar and line chart.  I only see the option to show the % of grand total in the quick measures.  New to PowerBI. 

 

sample

SO_START_DATESO_JOB_SEQSO_STATUS_NAME
1/12/2020 6:0012155SkipCond
1/12/2020 6:0012624SkipCond
1/4/2020 6:0016890Skip!RunCal
1/4/2020 6:0012624SkipCond
1/4/2020 6:0015694SkipCond
1/4/2020 6:0012155SkipCond
1/4/2020 6:0012624SkipCond
1/4/2020 6:009177SkipCond
1/4/2020 10:008855SKIPPED
1/4/2020 11:008855SKIPPED
1/4/2020 11:308856SKIPPED
1/4/2020 11:3615573FINISHED
1/4/2020 13:008856SKIPPED
1/4/2020 13:0615573FINISHED
1/8/2020 21:1515573FINISHED
1/8/2020 21:1625448FINISHED
1/8/2020 21:1815573FINISHED
1/8/2020 21:2125448FINISHED
1 ACCEPTED SOLUTION

Hi @zoupie ,

 

Check the document about how to create calculated column.

https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns

In addition, I don't quite understand what your mean "This is more of the downsteam table".

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

6 REPLIES 6
v-jayw-msft
Community Support
Community Support

Hi @zoupie ,

 

Create a calculated column yearmonth as x-axis.

yearmonth = FORMAT('Table'[SO_START_DATE],"YYYYMM")

Create measure as below.

Measure = CALCULATE(SUM('Table'[SO_JOB_SEQ]),FILTER(ALLEXCEPT('Table','Table'[yearmonth]),'Table'[SO_STATUS_NAME]="FINISHED"))/CALCULATE(SUM('Table'[SO_JOB_SEQ]),ALLEXCEPT('Table','Table'[yearmonth]))

Check if the result is what you want.

3.PNG

If not, let me know.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

sorry new to this formula builder.  I am trying yearmonth.  not working

 

yearmonth = FORMAT('vw_datamart_Activities'[dt_start],"YYYYMM")

This is more of the downsteam table

feel free to adjust our dashboard.  AppWorx_Azure

Hi @zoupie ,

 

Check the document about how to create calculated column.

https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns

In addition, I don't quite understand what your mean "This is more of the downsteam table".

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
zoupie
New Member

looking for monthly % time status is finished

v-jayw-msft
Community Support
Community Support

Hi @zoupie ,

 

Normally we can use ALLEXCEPT() function to calculate values group by category.

https://docs.microsoft.com/en-us/dax/allexcept-function-dax

Better to share some sample data to us for further help if you don't have any Confidential Information.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

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

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.