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.
How can I use this SQL to create a DAX table?
select distinct deviceid
from point.tm_assets
where companyid in (select distinct companyid from point.z_company_subscribed_base where applicationname = 'Specific Application')
Solved! Go to Solution.
Hi @sbolton1855 ,
Create a calculated table like below:
Table =
var tmp = CALCULATETABLE(DISTINCT('point z_company_subscribed_base'[companyid]),FILTER('point z_company_subscribed_base','point z_company_subscribed_base'[applicationname]="Specific Application"))
return
CALCULATETABLE(DISTINCT('point tm_assets'[deviceid]),FILTER('point tm_assets','point tm_assets'[deviceid] in tmp))
Best Regards,
Jay
Hi @sbolton1855 ,
Create a calculated table like below:
Table =
var tmp = CALCULATETABLE(DISTINCT('point z_company_subscribed_base'[companyid]),FILTER('point z_company_subscribed_base','point z_company_subscribed_base'[applicationname]="Specific Application"))
return
CALCULATETABLE(DISTINCT('point tm_assets'[deviceid]),FILTER('point tm_assets','point tm_assets'[deviceid] in tmp))
Best Regards,
Jay
@sbolton1855 , Calculated Table in DAX
summarize(filter(tm_assets, tm_assets[companyid] in summarize(filter(z_company_subscribed_base, z_company_subscribed_base[applicationname] = "Specific Application"),[companyid])), tm_assets[deviceid])
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |