Forum Discussion
Anonymous
4 years agoNot applicable
DAX Measure and Visual filtering
Hi all, I got stuck trying to figure out how to solve below issue, hope someone can help me out. I have a dataset with sales data, containing a column 'Sales_Price", and a column 'Won' with v...
- 4 years ago
Hi, Anonymous
You can try the following methods.
Conversion_Rate = IF ( SELECTEDVALUE ( Sales[Won] ) = "No", "N/A", DIVIDE ( CALCULATE ( SUM ( 'Sales'[Sales_Price] ), 'Sales'[Won] = "Yes" ), SUM ( 'Sales'[Sales_Price] ) ) )Is this the output you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-zhangti
Community Support
4 years agoHi, Anonymous
You can try the following methods.
Conversion_Rate =
IF (
SELECTEDVALUE ( Sales[Won] ) = "No",
"N/A",
DIVIDE (
CALCULATE ( SUM ( 'Sales'[Sales_Price] ), 'Sales'[Won] = "Yes" ),
SUM ( 'Sales'[Sales_Price] )
)
)
Is this the output you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous4 years agoNot applicable
Yes, thank you! This is perfect