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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mhunt
Frequent Visitor

How to add these two columns?

Example.zip in dropbox

I'm working on a Production Dashboard in Desktop to track 2 production schedules: Production A (Jan-May) and Production B (July-Dec).

 

Production techs will fulfil orders using the Schedule Targets. They can fulfil these targets using existing inventory when available. If inventory doesn't exist in their spec, they'll have to create inventory.

 

Production techs will update their Delivery excel worksheet when they have completed a part in their spec for their production schedule. A part cannot be consumed in Schedule A and Schedule B.

 

The following excel charts are updated frequently to track production and delivery status:

  • Schedule Delivery
  • Inventory

The following excel chart is updated twice a year by a manager at the end of a project: 

  • Schedule A Targets
  • Schedule B Targets

The following excel charts are for reference only and do not need to be updated: 

  • Item Classifications

What I need help with:

I need to add 2 columns to the Production needed chart:

  1. Parts to Create (PTC)-
    If (Sum of design > Count of Part),Then PTC= Sum of design minus count of part.
    If (Sum of design <= Count of Part),Then PTC= 0
  2. Parts to Review (PTR)-
    If (Sum of design > Count of Part),Then PTR = count of part.
    If (Sum of design <= Count of Part),Then PTR = Sum of design

Example_screenshot.PNG

Is this possible with DAX, measures, or new columns?

1 ACCEPTED SOLUTION
Nathaniel_C
Super User
Super User

Hi @mhunt ,

Thank you for the clear explanation, and the pbix. Build a measure that is the sum, and another for the count, then:

PTC = IF([Sum of Design]>[Count of Part],([Sum of Design]) - ([Count of Part]),0)

PTR = IF([Sum of Design]>[Count of Part],[Count of Part],[Sum of Design])

Obviously these are for Schedule A
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

 

 

 

 

ptr.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Nathaniel_C
Super User
Super User

Hi @mhunt ,

Thank you for the clear explanation, and the pbix. Build a measure that is the sum, and another for the count, then:

PTC = IF([Sum of Design]>[Count of Part],([Sum of Design]) - ([Count of Part]),0)

PTR = IF([Sum of Design]>[Count of Part],[Count of Part],[Sum of Design])

Obviously these are for Schedule A
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

 

 

 

 

ptr.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




That's PERFECT! Thank you so much! And a fast response.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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