Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
My company makes products. For each product we record 3 main components for cost. Burden, Labor, Mtl. I want to analyze our product cost over time BUT also want to be able to use a slicer to select which of teh components are calcualting. For Eaxmple I amy only want to look at MTL over time, or if I select mtl and labor I can also see that. I tried to use the Selected Value but is breaks when more than one item is selected. Thank you in advance
This was my attempt:
Solved! Go to Solution.
@bkwohls , Try like
Roll Up Cost =
Var Burdn = if(not(isblank(Countx(filter('Cost Type', 'Cost Type'[Cost Component]= "Burden"), 'Cost Type'[Cost Component]))) ,AAA_Measures[Average Burden],0)
Var Lbor = if(not(isblank(Countx(filter('Cost Type', 'Cost Type'[Cost Component]= "Labor"), 'Cost Type'[Cost Component]))) ,AAA_Measures[Average Labor],0)
Var Mtl = if(not(isblank(Countx(filter('Cost Type', 'Cost Type'[Cost Component]= "Material"), 'Cost Type'[Cost Component]))) ,AAA_Measures[Average Mtl],0)
Return
Burdn+Lbor+Mtl
100 % eaxactly what I needed thank you!
@bkwohls , Try like
Roll Up Cost =
Var Burdn = if(not(isblank(Countx(filter('Cost Type', 'Cost Type'[Cost Component]= "Burden"), 'Cost Type'[Cost Component]))) ,AAA_Measures[Average Burden],0)
Var Lbor = if(not(isblank(Countx(filter('Cost Type', 'Cost Type'[Cost Component]= "Labor"), 'Cost Type'[Cost Component]))) ,AAA_Measures[Average Labor],0)
Var Mtl = if(not(isblank(Countx(filter('Cost Type', 'Cost Type'[Cost Component]= "Material"), 'Cost Type'[Cost Component]))) ,AAA_Measures[Average Mtl],0)
Return
Burdn+Lbor+Mtl
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |