The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now
Hey Everyone!
I have a combo chart to compare data from this year and last. The current year only has 10 months' worth of data, while last year has a full 12 months. My goal is to get the current and prior year lines in my combo chart to show data up until the current year's month. Below are the measures that I have in place right now. It worked on the columns but not the 2021 line.
Any help or advice would be greatly appreciated!
@Anonymous So, in general, grab the MAX date from your current year table. Grab the MAX date from your date table, assuming you have one. Use an IF statement to compare the two values and if the max date from your date table is greater than the max date from your current table, then return BLANK, otherwise, return your calculation.
User | Count |
---|---|
160 | |
110 | |
96 | |
86 | |
75 |
User | Count |
---|---|
158 | |
136 | |
133 | |
81 | |
61 |