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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
James_Ma
Helper I
Helper I

How to assign values for one Business division to another

Hi,

 

Can anyone help me with this request please?

 

I have a table visual in PowerBI where it shows the "Amount for Supplier costs" for 4 separate Business Areas.

 

i.e. PI = £2,971,586.04, TR = £122,591.57 fianl result should show PI = £0 and TR = £3,094,177.61

Charge TypeAmount for Supplier costsSupplierBusiness AreaInternal/External
Supplier costs£202,789.82HomeRefCorporateInterna
Supplier costs£0.00HomeRefINInternal
Supplier costs£2,971,586.04HomeRefPIInternal
Supplier costs£122,591.57HomeRefTRInternal

 

There is a measure used to calculate the Amount for Supplier costs:

Amount for Supplier costs =
CALCULATE(
    SUM('billing'[Amount]),
    'billing'[ChargeType]
        IN { "Supplier costs" }
)
2 ACCEPTED SOLUTIONS

Just looked at this again and added the Business area from the case table and  all seemed good, but PI has 0 values for internal and external, so ideally I need to add to the measure to only do this calc if the internal external column is internal.

Measure = SWITCH(SELECTEDVALUE('Case'[Business Area]),
"IN",[Amount for Supplier costs],
"Corporate",[Amount for Supplier costs],
"PI",0,
"TR",CALCULATE([Amount for Supplier costs],ALLSELECTED('Case'),'Case'[Business Area] IN {"PI", "TR"})
)

View solution in original post

Anonymous
Not applicable

Hi @James_Ma So you can try

Measure = 
IF(SELECTEDVALUE('Table'[Internal/External])="Internal",
SWITCH(SELECTEDVALUE('Case'[Business Area]),
"IN",[Amount for Supplier costs],
"Corporate",[Amount for Supplier costs],
"PI",0,
"TR",CALCULATE([Amount for Supplier costs],ALLSELECTED('Case'),'Case'[Business Area] IN {"PI", "TR"})
),
[Amount for Supplier costs])

 

Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @James_Ma 

 

You can create a new measure like below and use it in the table visual. 

Measure = 
SWITCH(SELECTEDVALUE('billing'[Business Area]),
    "IN",[Amount for Supplier costs],
    "Corporate",[Amount for Supplier costs],
    "PI",0,
    "TR",CALCULATE([Amount for Supplier costs],ALLSELECTED('billing'),'billing'[Business Area] IN {"PI", "TR"})
    )

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Just looked at this again and added the Business area from the case table and  all seemed good, but PI has 0 values for internal and external, so ideally I need to add to the measure to only do this calc if the internal external column is internal.

Measure = SWITCH(SELECTEDVALUE('Case'[Business Area]),
"IN",[Amount for Supplier costs],
"Corporate",[Amount for Supplier costs],
"PI",0,
"TR",CALCULATE([Amount for Supplier costs],ALLSELECTED('Case'),'Case'[Business Area] IN {"PI", "TR"})
)

Anonymous
Not applicable

Hi @James_Ma So you can try

Measure = 
IF(SELECTEDVALUE('Table'[Internal/External])="Internal",
SWITCH(SELECTEDVALUE('Case'[Business Area]),
"IN",[Amount for Supplier costs],
"Corporate",[Amount for Supplier costs],
"PI",0,
"TR",CALCULATE([Amount for Supplier costs],ALLSELECTED('Case'),'Case'[Business Area] IN {"PI", "TR"})
),
[Amount for Supplier costs])

 

Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Hi Jing,

If I use this measure and there are no filters applied it still shows the PI amount, that is internal, in the PI total so does not count as 0 until I apply the "internal" filter in the visual?

Sorry if I am being a little dumb ob this one.

Thanks Jing, that works exactly how I need it to. Much appreicated help 

Hi Jing, thanks for that measure, just to say that hte Business Ares is from a different table called "Case" how would that effect the measure?

James_Ma
Helper I
Helper I

I needed to add that I wish to add teh Internal supplier costs from PI to the internal supplier costs for TR.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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