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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
michellepace
Resolver III
Resolver III

Snapshot data: Newsletter subscriptions per person (or newsletter) (or total) over time

Hello there.

RE: https://michellepace.com/pics/snapshot.pbix 

Goodness how I struggle with DAX. Can someone please help me with a DAX measure to calculate the number of newsletter subscriptions? Below in the blue box, are all the details of my data. The pink shows the measure I have tried (but it only seems to work if I select ONE subscrip_id). Basically, if I am standing on a given date (eg 20 August) for a given subscription X, then I think the DAX needs to look back through time to the last row of data for subscription X (eg 15 August). If The subscription isOn for the 15th of August, then it is on and counted as a subscription for the 15, 16, 17, 18, 19, 20 August. But of course there is only one subscription count. That is the only way I can imagine solving this... but just how to take my words and put them in DAX is quite... well beyond me right now. 

michellepace_0-1692599976769.png

Thanks very much in advance,

Michelle

1 ACCEPTED SOLUTION

@michellepace 
Check this and refer to attached sample file

1.png

View solution in original post

5 REPLIES 5
tamerj1
Super User
Super User

Hi @michellepace 
Not sure if I fully understand but you may check below

1.png

Hello @tamerj1 . Thank you. Almost there, but not quite. Your "try2" Dax measure looks to be over counting subscriptions. I think it's because of what I see below. The subscription should all be zero from the 2023-07-02 up until today. I've added your try2 measure to:  https://michellepace.com/pics/snapshot.pbix . Any ideas how to fix this?

michellepace_0-1692613905819.png

Thanks very much once again.

@michellepace 
Try this

1.png

Hi @tamerj1 . Afriad not 😐 . The measure is now undercounting. "Try3" should have a total here of "1" (not zero). I've added your measure and uploaded to https://michellepace.com/pics/snapshot.pbix

michellepace_0-1692616871772.png

 

@michellepace 
Check this and refer to attached sample file

1.png

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.