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.
Hi!
I have been searching for a way to solve this problem, but can't get it to work - so trying here instead.
I have a DAX IF-formula like below for calculating new customers:
Solved! Go to Solution.
Hi @Anonymous,
Based on the calculation you present you need to have a SUMX to calculate this values something similar to:
Measure = SUMX(Values(Table[Customer), IF([Sales Previous 4weeks TY] >0, IF([Sales Previous 4weeks TY] = [Sales Previous X-Months TY], 1, 0) )
However looking at your formula this probably will not work correctly because of context. What you need to do is to calculate all a summarize table with the values of the customers and both measures.
In order to give you the correct resutls, can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi and thanks for a quick reply,
@MFelix I have now created a sample file as show exactly the same issue as I getting with my real data.
As you see here is the bottom row showing "0", the number I am after here is 3.
Hi @Anonymous,
Based on the calculation you present you need to have a SUMX to calculate this values something similar to:
Measure = SUMX(Values(Table[Customer), IF([Sales Previous 4weeks TY] >0, IF([Sales Previous 4weeks TY] = [Sales Previous X-Months TY], 1, 0) )
However looking at your formula this probably will not work correctly because of context. What you need to do is to calculate all a summarize table with the values of the customers and both measures.
In order to give you the correct resutls, can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering 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 |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |