Forum Discussion
Dax Calculation - Cost Per Thousand and Number Formatting
- 9 years ago
Hi Anonymous,
1. Use the formula below to add a calculate column in your table.
Column = DIVIDE('Master Rate Data'[Budget],'Master Rate Data'[Cost-Per-Thousand])*10002. Then you should be able to use the formula below to create new measure, then show it on the report.
messure = IF ( HASONEFILTER ( 'Master Rate Data'[Product] ) && HASONEFILTER ( 'Master Rate Data'[Budget] ) && HASONEFILTER ( 'Master Rate Data'[Spend Level] ), MAX ( 'Master Rate Data'[Column] ) )Here is the modified pbix file for your reference. :smileyhappy:
Regards
Hi Anonymous,
1. Use the formula below to add a calculate column in your table.
Column = DIVIDE('Master Rate Data'[Budget],'Master Rate Data'[Cost-Per-Thousand])*1000
2. Then you should be able to use the formula below to create new measure, then show it on the report.
messure =
IF (
HASONEFILTER ( 'Master Rate Data'[Product] )
&& HASONEFILTER ( 'Master Rate Data'[Budget] )
&& HASONEFILTER ( 'Master Rate Data'[Spend Level] ),
MAX ( 'Master Rate Data'[Column] )
)
Here is the modified pbix file for your reference. :smileyhappy:
Regards
AMAZING! Thank you so much.
One question, is there a way to make spend level formatted as a currency? I belive the special characte of "<" is keeping me from doing this?
- dkay84_PowerBI9 years ago
Microsoft Employee
No. The special character means the whole value gets treated as a string, not a numeric value.