Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello community.
I need to make some interesting calculations
We have a table which consists of ready products and materials.
The goal is to calculate percentage of ready products that contains in materials. For that reason we need to calculate total ammount of materials. Then we need to divide every amount of ready product with total ammount of materials so we could get percentage that has this ready product in materials.
With what mesure can I achive that?
Solved! Go to Solution.
@DimaMD change to following
Material = CALCULATE( SUM('Table'[Amount]), 'Table'[View]="Material",REMOVEFILTERS('Table'[Product],'Table'[Amount]))
RedyProdyct = CALCULATE( SUM('Table'[Amount]),'Table'[View] = "RedyProduct" )
% material = DIVIDE(
[RedyProdyct],[Material])
gives you this
@DimaMD change to following
Material = CALCULATE( SUM('Table'[Amount]), 'Table'[View]="Material",REMOVEFILTERS('Table'[Product],'Table'[Amount]))
RedyProdyct = CALCULATE( SUM('Table'[Amount]),'Table'[View] = "RedyProduct" )
% material = DIVIDE(
[RedyProdyct],[Material])
gives you this
@smpa01 Hi,
Thank you for helping to understand how to calculate, I am very grateful to you.
The measures worked
@DimaMD In looking at the PBIX file, I am not sure how to identify which ready products have which materials in them. Or is that not important?
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
25 | |
21 | |
20 | |
14 | |
13 |
User | Count |
---|---|
43 | |
37 | |
25 | |
24 | |
23 |