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.
Hi, everyone!
I have the following field parameter in DAX, and I will use this columns to alternatively fullfill a column matrix field and a X-axis graph visual:
Parameter = {
("Director", NAMEOF('cost_center'[director]), 0),
("month", NAMEOF('calendar'[month]), 1)
}
The idea is that date filters should work when director is selected in parameter, and should ignore when month is selected.
How can I ignore filters in the column "'calendar'[month]" , only when selecting the option "month" in the parameter?
I tried this, but it didn't work:
Parameter = {
("Director", NAMEOF('cost_center'[director]), 0),
("month", CALCULATE(NAMEOF('calendar'[month]), ALL('calendar')), 1)
}
Thanks in advance!
Use a separate measure as a visual filter. That measure can sense the selected value of the parameter and modify the date filters accordingly.
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
32 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |