Forum Discussion
DAX Parameter on multile columns
Hi,
I have a date table that has a date, previous_day, MTD, YTD etc columns.
For previous_day, MTD, YTD the values are either Y or N.
Is it possible to have a parameter based on previous_day, MTD, YTD that is set to Y but the user selects one of the 3 columns ?
They can then run this for the same report to show either previous_day, MTD, YTD data.
This will be done in pagenated reports.
Thanks Griggers
8 Replies
- danextianSuper User
Hi Griggers
Do those columns already have the expected to-date values? If so, you can use field parameters to switch between columns. https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters
The Y/N column can be used in a slicer. Here's a demo of what field parameters can do.
- Jihwan_KimSuper User
Hi,
I am not sure how your semantic model looks like, but I believe FIELD PARAMETER feature can help to solve your problem.
Please check the link down below from Microsoft Learn.
Use report readers to change visuals (preview) - Power BI | Microsoft Learn
- GriggersFrequent Visitor
Hi Jihwan_Kim,
The 3 columns previous_day, MTD, YTD the values are already set to either Y or N.
Im looking at creating the parameter in pagenated report.
I would like to pass Previous Day = Y or MTD = Y or YTD = Y to the query and return dates based on this.
Thanks
Griggers
- AnonymousNot applicable
Hi Griggers ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
- v-achippaCommunity Support
Hi Griggers,
Thank you for reaching out to Microsoft Fabric Community.
Thank you Jihwan_Kim and danextian for the prompt response.
As we haven't heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue?
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.Thanks and regards,
Anjan Kumar Chippa
- v-achippaCommunity Support
Hi @Griggers,
We wanted to kindly follow up to check if the solution provided by the super user resolved your issue?
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
- v-achippaCommunity Support
Hi @Griggers,
As we haven't heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue?
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.Thanks and regards,
Anjan Kumar Chippa