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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Jay2022
Helper II
Helper II

subtracting 100 from each value in another column

i have % increase in one column eg 60%, 80% for various organisations and i want to show the remainder eg 40% and 20% in another so i can show stacked bar charts etc how do i create a column which deducts 100 from each percentage 

 

i tried something like % remaing = 100 - % increase but that didn't work 

 

Any help greatly appreciated 

1 ACCEPTED SOLUTION
v-fenling-msft
Community Support
Community Support

Hi, @Jay2022 

I am glad to help you.   

 

According to your description, you want to calculate the remaining percentage? 

 

If I understand you correctly, then you can refer to my solution.  

 

I created a simple dataset based on your description: 

vfenlingmsft_0-1722391428746.png

 

Then use the following DAX formula for New Column in Power BI Desktop: 

vfenlingmsft_1-1722391428747.png

 

 

Remaining Percentage = 
1 - [Percentage Increase]

 

 

Remember to change the type of the corresponding column to Percentage: 

vfenlingmsft_2-1722391446084.png

 

vfenlingmsft_3-1722391446085.png

 

In my tests, this DAX formula works: 

vfenlingmsft_4-1722391468808.png

 

 

You can refer to my steps to test it again and if you still have problems, please provide some sample data in text format (excluding sensitive data) in the form, or even better if you can provide a simplified pbix file. Thanks! 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-fenling-msft
Community Support
Community Support

Hi, @Jay2022 

I am glad to help you.   

 

According to your description, you want to calculate the remaining percentage? 

 

If I understand you correctly, then you can refer to my solution.  

 

I created a simple dataset based on your description: 

vfenlingmsft_0-1722391428746.png

 

Then use the following DAX formula for New Column in Power BI Desktop: 

vfenlingmsft_1-1722391428747.png

 

 

Remaining Percentage = 
1 - [Percentage Increase]

 

 

Remember to change the type of the corresponding column to Percentage: 

vfenlingmsft_2-1722391446084.png

 

vfenlingmsft_3-1722391446085.png

 

In my tests, this DAX formula works: 

vfenlingmsft_4-1722391468808.png

 

 

You can refer to my steps to test it again and if you still have problems, please provide some sample data in text format (excluding sensitive data) in the form, or even better if you can provide a simplified pbix file. Thanks! 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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