Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi all,
I am new to DAX, comming with SQL Server background.
My data is organized in a classic way, two tables:
- Companies, with columns company_id, country and name;
- Impressions, with impression_id, click_id, company_id and timestamp.
The problem I have is with some aggregated values, I can create them as calculated columns on Companies table or as whole new table - however this way allows only filtering on Companies[Country] and I absolutely need to filter on Impressions[timestamp].
Can you please suggest how to modify my DAX?
ADDCOLUMNS (
SUMMARIZE (
Impressions;
Impressions[target_company_id];
"TotalImpressions"; SUMX ( Impressions; IF ( Impressions[impression_id] > 0; 1 ) );
"TotalClicks"; SUMX ( Impressions; IF ( Impressions[click_id] > 0; 1 ) )
);
"Company Name"; LOOKUPVALUE (
Companies[Company Name];
Companies[id]; Impressions[target_company_id]
)
)
Thanks!
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |