Forum Discussion
Remove filter with ALL
Hi,
I'm am having a little trouble trouble with filtering values.
My code is currently as follows:
On the PowerBI page I want the calculation to exclude the fields:
I'm sure this is straightforward just having a little issue with the syntax.
Thanks,
5 Replies
- Greg_DecklerCommunity Champion
VendettaBob Break each of those into separate ALL statements.
- VendettaBobHelper II
Hi Greg,
I then get the error:
Regards,
- AnonymousNot applicable
Hi VendettaBob ,
Please modify your formula.
_maxlastcompletedate=var revisedvalues=maxx(summarize('serviceorderheadercustomer','Individualitem'[IndividualitemI],"Lastfinshdate",calculate(max('serviceorderassignment'[Assignmentfinsheddate]),filter(all('serviceorderassignment'),Year('serviceorderassignment'[Assignmentfinsheddate])<>2079))),[lastfinisheddate]) return if(hasonevalue('Individualitem'[IndividualitemI]),revisedvalues,blank()If I have misundrestood your meaning, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- VendettaBobHelper II
Hi Polly,
That's not going to work.
I need to exclude the customersiteaddress dimension: CustomerSiteAddress[CompanyGroupCustomerNumber
Your query excludes everything from a the serviceorderassignment dimension.
- AnonymousNot applicable
Hi VendettaBob ,
How to Get Your Question Answered Quickly
Please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.