Forum Discussion
DAX formula
Hello team,
I have following sititation:
I have 2 tables, I need to create 3rd table.
Using DAX summarize function I get product unique values (see required Output), but I'm strugling to bring quotas, sales and calclate attainments. Example below:
Any help appreciated!
Thank you! 🙂
hi Thunders ,
try to:
1) add a calculated product table like:
Product = VALUES(sales[Product])2) relate product[product] with sales[product] and quotas[product]
3) plot a table visual with product[product] and three measures like:
@sales = SUM(sales[Sales]) @Quotas = SUM(quotas[Quotas]) Attainment% = DIVIDE([@sales], [@Quotas])
it worked like:
8 Replies
- ThundersFrequent Visitor
Thank you Dangar,
Just one little issue. The sales are the same for all products even thou I established relationship between tables.
- Dangar332Resident Rockstar
- ThundersFrequent Visitor
Since I can't established relationship for products between Quotas and Sales table I created new table with unique product values. Works well for Quotas/Sales, but not for table 3 (no idea why)
- ThundersFrequent Visitor
Somehow still it is giving me hard time...se below.
- FreemanZSuper User
hi Thunders ,
try to:
1) add a calculated product table like:
Product = VALUES(sales[Product])2) relate product[product] with sales[product] and quotas[product]
3) plot a table visual with product[product] and three measures like:
@sales = SUM(sales[Sales]) @Quotas = SUM(quotas[Quotas]) Attainment% = DIVIDE([@sales], [@Quotas])
it worked like:- ThundersFrequent Visitor
Works perfect! Thank you so much! 🙂