Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi, Thank you in advance for helping me to solve with DAX for the below sample.
I calculated the measures:
Also, I did not get the results by Year for the measure selection of "Lost" as shown in the below screenshot.
Please help me on this.
I'll give you a hint: You should use the standard building blocks of Power BI, not invent your own. Please read this first Time Intelligence in Power BI Desktop - SQLBI. Each sensible model should have a proper Date table as a dimension. If you don't need to expose a set of columns from it, you can hide them. But you should use what you've been given out of the box.
Now, why the heck would you write code like this: -[Diff]=[Sales previous year]? Since [Sales]-[Sales previous year] = [Diff], is it not simpler and more understandable to just write [Sales] = 0? Why would you want to complicate simple things?
Last thing... If you want to also have totals, you have to sum up the quantities of interest over the set of visible customers.
User | Count |
---|---|
47 | |
26 | |
22 | |
17 | |
15 |
User | Count |
---|---|
53 | |
34 | |
17 | |
17 | |
15 |