Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31015

oData Filter Question

$
0
0

Hello,

 

I'm trying to solve the following issue. I have 2 entities, Sales and SalesLines.  Due to the size of the SalesLines entity, I need to filter SalesLines to only the last 90 days of transactions (otherwise the Power BI service fails to refresh the entity data).  However the SalesLines entity does not have a date field, but is related to the Sales entity by TransactionNumber [Sales[TransactionNumber] -> SalesLine[TransactionNumber] )1 to Many).

 

I filter the Sales entity by transaction date like this (which works):

= OData.Feed("https://MyDataFeed.com/data/Sales?$filter=TransactionDate ge  2017-06-01"

 

But I can't seem to determine how then to dynanically filter the SalesLines to only the transactionnumbers in the sales entity.  The odata doesn't have an IN function.  Is there a way to accomplish this?

 

This is basically what I'm after but not certain if it's possible?

= OData.Feed("https://MyDataFeed.com/data/SalesLines?$filter=TransactionDate IN Sales[TransactionNumber]"

 

 

 


Viewing all articles
Browse latest Browse all 31015

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>