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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.