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
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 |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |