Forum Discussion
alejopiero
May 02, 2022Copper Contributor
Power Query - how to exclude members where measure is blank?
Hi Community, I hope you are doing very good. I have a data model in Excel trough Power Query where I have the Sales table and the Budget table. Also, I've created a master table for products and...
- May 03, 2022
For such model we could use two measures:
Order quantity:=SUM ( Orders[Orders] ) Budget quantity:=CALCULATE ( SUM ( Budget[Budget] ), TREATAS ( VALUES ( Orders[Product] ), Budget[Product] ) )Result is
alejopiero
May 02, 2022Copper Contributor
Adding the relationships:
SergeiBaklan
May 03, 2022Diamond Contributor
For such model we could use two measures:
Order quantity:=SUM ( Orders[Orders] )
Budget quantity:=CALCULATE (
SUM ( Budget[Budget] ),
TREATAS (
VALUES ( Orders[Product] ),
Budget[Product]
)
)
Result is
- alejopieroMay 03, 2022Copper Contributor
SergeiBaklan Excellent! it works fine! thank you very much!! You helped me a lot!! Regards.Ale
- SergeiBaklanMay 03, 2022Diamond Contributor
alejopiero , you are welcome