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.
Trying to perform a calculation and having some challenges...which I think how Power BI is recognizing my data.
The calculation should be:
Budget, Divided by Cost Per Thousand * 1,000
My limitations are:
All suggestions are welcome.
Thank you.
Solved! Go to Solution.
Hi @irnm8dn,
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.
Regards
Your measure needs to be a calc column
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks @MFelix
I am thinking we are almost there, but that the DAX formula may not be entirely correct.
Let me write this as a word problem so we can look at all the inputs and we can discuss a proper DAX calculation.
Johnny has a $500 budget to purchase apples. The cost for apples is $20 cost per thousand. How many apples can Johnny buy based on his budget. $500/$20*1000 = 25,000 apples.
Thanks for the help.
Hi @irnm8dn,
If that is the case then just multiply your cost per thousan by 1000 this should give you:
Measure = DIVIDE (SUM(Table[Budget]), SUM(Table[CostPerThousand])*1000)
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsI don't think it should be summing the CPM. Despite getting a calculation - it's not working properly.
Any thoughts?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHello @MFelix.
Simply put I take the Budget (Customer Spend), divided by the CPM "constant" * 1,000....essentially it give me the total number of units a customer could purchase based on budget.
The CPM is a "constant".
If you're interested, and looking for a full picutre if what I am trying to do, this may help. I have added some sample files, because I am tied in knots over this one. Thanks your help. http://community.powerbi.com/t5/Desktop/Slicer-Behavior-on-Tiles/m-p/188227#M82778
Hi @irnm8dn,
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.
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?
No. The special character means the whole value gets treated as a string, not a numeric value.
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 |
---|---|
111 | |
94 | |
83 | |
67 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |