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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Apple08
Helper IV
Helper IV

Percentage cost vs budget

Hi All

 

I need to add in a measure to find out the percentage of cost vs budget as below:

 

FYSub UnitBudgetCost% Cost vs Budget
22/23A100050050%
22/23B100020020%
22/23C200050025%
22/23D300060020%

 

The budget and cost are stored in two seperate tables: Table 1[Budget], and Table 2[Cost].  Please could anyone help to tell me how to work out and add in the new measure '% Cost vs Budget'.  Many thanks.

2 REPLIES 2
v-binbinyu-msft
Community Support
Community Support

Hi @Apple08 ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu

Thanks.  The Budget (Table 1) and Cost (Table 2) are seperated, however I can now use SUMX filter DAX to obtain the cost from Table 2 to Table 1 as below:

 

Table 1

FYSub UnitBudgetCost
22/23A1000500
22/23B1000200
22/23C2000500
22/23D3000

600

 

The Desire result is I need to get the column of % Cost vs Budget, which is for Sub Unit A, calculate 500/1000 = 50%, for Sub Unit B 200/1000 = 20% etc as below:

 

FYSub UnitBudgetCost% Cost vs Budget
22/23A100050050%
22/23B100020020%
22/23C200050025%
22/23D300060020%

 

I have tried to add in two measures for the sum of budget and sum of cost, then divide the measures but I am unable to get the desire result.  Please could you help and let me know if anything is unclear.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.