Forum Discussion
nmaddock
Helper I
7 years agoDAX Check column for value in a measure
Hi, How can I check if the Column matches a value to set a value in a measure. This is what I am trying to achieve. Thanks in advanced Power Bi report below https://www.dropbox.com/s/dq...
- 7 years ago
nmaddock Please find the updated measure calculation in the pbix file attached. Check and let me know if any isssues.
JIGAR
Resolver IV
7 years agonmaddock :
Hi,
Assuming that you want to match the selected value from the Material Type slicer to Glass or Cardboard, you can use the below mentioned formula for your measure.
Disposal Costs = if(OR(SELECTEDVALUE(MaterialTypes[Material Type],"") = "Glass",SELECTEDVALUE(MaterialTypes[Material Type],"") = "Cardboard"),0,DIVIDE(125, 1000))
Hope this helps !!
Thanks