The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a matrix visual showing a mix of products and related values for quantities on hand, quantitites on order, etc for each product. There is a date slider spanning multiple fiscal years controlling the matrix so that users have an historical view of of these columns based on what date range they select with the date slider. I'd like to add another column to the matrix that shows the current fiscal year to date values for all products that won't change or disappear altogether regardless of what date range a user selects in the date slider. I created a calculated column in my sales/quantity table capturing the current fiscal year quantity for all products:
However, when moving the date slider to a range that isn't part of the current fiscal year, the column goes blank.
Solved! Go to Solution.
I discovered the solution to the issue and it was ridiculously simple. I was using the wrong source table for my date slider. The REMOVEFILTERS does work now. This was definitely a facepalm moment on my part. Thank you @Ritaf1983 and @Anonymous for attempting to help. Should have had more coffee before posting this one.
I discovered the solution to the issue and it was ridiculously simple. I was using the wrong source table for my date slider. The REMOVEFILTERS does work now. This was definitely a facepalm moment on my part. Thank you @Ritaf1983 and @Anonymous for attempting to help. Should have had more coffee before posting this one.
Hi @rbowen
Following your description, I tested it using simple data and the measure works well in the matrix.
As Ritaf1983 mentioned, please provide some sample data and explain your matrix construction process in as much detail as possible (DAX formulas for other metrics used in the matrix, other table fields that may be used, relationships between tables, etc.). This will allow us to clarify the cause of the problem as soon as possible and make suggestions.
YTDQtyStatic = CALCULATE(SUM('Sales'[CurrentFYQty]), REMOVEFILTERS('Date'[Calendar Date]))
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Jarvis -
Does your value stay static if you move the right hand side of the date slider to the left?
Hi @rbowen
Please provide a workable sample data and your expected result from that. It is hard to figure out what you want to achieve from the description alone.
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
183 | |
80 | |
62 | |
46 | |
38 |