Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
KevinOGC
Frequent Visitor

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 2
v-chuncz-msft
Community Support
Community Support

@KevinOGC 

 

You may refer to the following posts.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft  thanks a lot for your answer!

 

There is no colum/table with the is_online date, so I need to count the is_online daily and save it to somewhere. All the given examples using an available date.

 

Are there options without a date is_online relation?

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.