Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Having an issue with dynamic ranking and need some advice and guidance. Multiple attemps have been made to fix this issue but my beginner level skill has kept the solution out of reach.
Have a report showing total sales by part number. The user can select a ranking from a slicer and the corresponding table will shows only those items for the rank selected.
The problem begins when you want to see "all" sales. The ranking works but the outcome is not expected as it is excluding previous years sales which were not sold in the current year. A simple check on an unfiltered table (Rank, Material Number, Current sales, Previous Sales) confirmed that items without sales in the current year have a blank for ranking. Only items with current sales receive a rank, like below.
Rank | Material | CY Sales | PY Sales |
ABC | $100.00 | ||
DEF | $200.00 | ||
1 | GHI | $500.00 | $300.00 |
This is not unusual as current sales are being ranked but when "All" ranking is selected the expected outcome is to see all current and previous year sales. The part ranking table created does not account for blank rankings. In the above example, the sales total for the previous period would be short $300.00. The expected outcome for All Sales would be CY Sales=$500 and PY Sales=$600.
The table being used consists of only maximum values (5,10, 25, 50, 10000). Is there a way to account for blanks? Shown below is the DAX formulas along with a link to a sample file.
Any help would be greatly appreciated - M_Wex
User | Count |
---|---|
47 | |
28 | |
23 | |
18 | |
15 |
User | Count |
---|---|
55 | |
34 | |
18 | |
17 | |
15 |