Forum Discussion
Power Query - how to exclude members where measure is blank?
- 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
With
measure could be
Budget Quantity:=CALCULATE( SUM ( Budget[Budget] ),
TREATAS( VALUES( Orders[Customer] ), Budget[Customer] ) )
Hi SergeiBaklan !!
I appreciate so much your help and time. Thank you very much!. My data model is a bit different. What happens is that I don't have budget at customer level. For that reason I agree that the pivot show the budget quantity as drill drown showing for each customer the total budget for the product. However, I don't want that the pivot show every customer when they don't have sales.
My data model:
My expectation is that the pivot show as the following, but I couldn't make it.
Thank you again.
Regards
Ale
- alejopieroMay 02, 2022Copper Contributor
Adding the relationships:
- SergeiBaklanMay 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