Forum Discussion

KevinOGC's avatar
KevinOGC
Frequent Visitor
7 years ago

Saving measure value into table

Hi everyone,

 

I have a table 'advertisements' which looks like below:

 

idis_online
1true
2false
3false
4true
5true
6false

 

I want to count the unique id where online is true, so I made the DAX like below:

Online Ads = CALCULATE(
DISTINCTCOUNT(Advertisements[id]);
FILTER (Advertisements;Advertisements[is_online]=True))
 
Now the is_online status changes over time and I want to save this measure in a table on a daily basis (at a specific moment) which should look like:
 
dateis_online
1/1/20192
1/2/20196
1/3/20192
1/4/20194
1/5/20191
1/6/20194

 

How can I achieve this?

2 Replies