Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi All
I need to add in a measure to find out the percentage of cost vs budget as below:
| FY | Sub Unit | Budget | Cost | % Cost vs Budget |
| 22/23 | A | 1000 | 500 | 50% |
| 22/23 | B | 1000 | 200 | 20% |
| 22/23 | C | 2000 | 500 | 25% |
| 22/23 | D | 3000 | 600 | 20% |
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.
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
| FY | Sub Unit | Budget | Cost |
| 22/23 | A | 1000 | 500 |
| 22/23 | B | 1000 | 200 |
| 22/23 | C | 2000 | 500 |
| 22/23 | D | 3000 | 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:
| FY | Sub Unit | Budget | Cost | % Cost vs Budget |
| 22/23 | A | 1000 | 500 | 50% |
| 22/23 | B | 1000 | 200 | 20% |
| 22/23 | C | 2000 | 500 | 25% |
| 22/23 | D | 3000 | 600 | 20% |
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 70 | |
| 39 | |
| 35 | |
| 23 |