Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |