Forum Discussion
DAX for PowerBI Paginated Report - Multiple Values Selected
I am building a Paginated Report using a Power BI dataset.
I've been able to enable parameters to allow users to filter for a specific dataset (e.g. Literacy class group) if they select a single class using the method outlined here: https://audministrator.wordpress.com/2019/12/20/power-bi-report-builder-using-parameters/?unapproved=14063&moderation-hash=01e3a55baf8c3be22e8e9b39a78f77ab#comment-14063
However this only works if the user selects one value and not multiple values.
The DAX is FILTER(VALUES('ref_LiteracyClass'[Literacy_Class]), PATHCONTAINS(@LiteracyClass, 'ref_LiteracyClass'[Literacy_Class])) where '@' value is the parameter value selected.
Is there an alternate DAX query I could use? It seems like the FILTER operation will only return one value.
Rewind you have to use RSCUSTOMDAXFILTER function for multiple values in your Power BI Report builder DAX expression. You can check my video on this at this link that talks about various things working with Power BI datasets in the Power BI report builder https://onyxdata.co.uk/microsoft-power-bi-uk-user-group-webinar-paginated-reports-with-parvinder-chana/
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
3 Replies
- parry2k
Super User
Rewind you have to use RSCUSTOMDAXFILTER function for multiple values in your Power BI Report builder DAX expression. You can check my video on this at this link that talks about various things working with Power BI datasets in the Power BI report builder https://onyxdata.co.uk/microsoft-power-bi-uk-user-group-webinar-paginated-reports-with-parvinder-chana/
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- Rewind
Helper I
Thank for the resource! I ended up changing my method/approach to match your presentation and it worked.