Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Please see above prompt I am entering in advance editor. I would only like to bring in ABC00001-01 and ABC00004-01. However the above is only bringing in ABC00001-01. How do I bring in just ABC00001-01 and ABC00004-01?
I know I can use 6 instead of the 4 and it will do "Between" But I dont want ABC00002-01 and ABC00003-01. Is there something I am doing wrong? Any help would be greatly appreciated.
Solved! Go to Solution.
Hi @homboy27,
We wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.
If my response resolved your issue, please mark it as "Accept as solution" and give kudos if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
Hi @homboy27,
Thank you for reaching out to Microsoft Fabric Community.
The issue here likely is that operator 4 applies a range filter, not a list. That includes all values between ABC00001-01 and ABC00004-01 like depending on what exists in the model and how it is sorted.
So to include only specific values, use operator 6 which means set inclusion, like this below:
{Cube.ApplyParameter, "VAR_NHS_LEVEL1", {6, "ABC00001-01", "ABC00004-01"}}
This ensures only those two values are included, the cube will fetch exactly the values and ignore anything in between.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
4 is equals to and 6 is between. When I try that with 4. It doesnt works.
Hi @homboy27,
The issue here is like we can see one value is because the operator 4 means Equals, which supports only one value. When you pass two values only the first one is applied the rest are ignored. Cube parameters like ApplyParameter do not support multi value with Equals filters directly.
Try to use this below one, filter after the cube is loaded by using power query:
Table.SelectRows(Source, each [VAR_NHS_LEVEL1] = "ABC00001-01" or [VAR_NHS_LEVEL1] = "ABC00004-01")
This will ensure only the two values are returned.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Hi @homboy27,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.
If my response resolved your issue, please mark it as "Accept as solution" and give kudos if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
Hi @homboy27,
We wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.
If my response resolved your issue, please mark it as "Accept as solution" and give kudos if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
User | Count |
---|---|
11 | |
7 | |
5 | |
5 | |
4 |
User | Count |
---|---|
16 | |
14 | |
8 | |
6 | |
6 |