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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
tt3
Microsoft Employee
Microsoft Employee

Show monthly subscription, assuming amount constant each month

Hi, 

 

I need to show monthly subscription for a product, but I have only been provided the product name, the monthly product charge (constant, same amount each month), the start date and the end date. Something like below: 

 

ProductStart DateEnd DateMonthly Amount
ABC9/1/202310/1/2024$500
DEF10/1/202311/1/2024$900
GHI11/1/202312/1/2024$1,200

 

I am hoping to produce something like this: 

 

 1-Sep-231-Oct-231-Nov-231-Dec-231-Jan-241-Feb-241-Mar-241-Apr-241-May-241-Jun-241-Jul-241-Aug-241-Sep-241-Oct-24
ABC$500$500$500$500$500$500$500$500$500$500$500$500$500$500
DEF $900$900$900$900$900$900$900$900$900$900$900$900$900
GHI  $1200$1200$1200$1200$1200$1200$1200$1200$1200$1200$1200$1200

 

As I would then like to produce a chart. 

 

Is there something in DAX I could write that would help me achieve what I am after? My reason for asking is that the data I have is only going to increase in volume, so it would be really nice to put together some function that enables me to take the monthly amount and apply it to each month. Hopefully that makes sense. 🙂

 

Any help would be greatly appreciated. I am a DAX newbie. 

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

Expand.pbix

 

ThxAlot_0-1690019520548.png

 

PQ is easier to implement such logical.

ThxAlot_1-1690019715651.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



View solution in original post

2 REPLIES 2
tt3
Microsoft Employee
Microsoft Employee

Thank you very much! Over the weekend I was thinking I should likely use PQ instead. Really appreciate your help. 

ThxAlot
Super User
Super User

Expand.pbix

 

ThxAlot_0-1690019520548.png

 

PQ is easier to implement such logical.

ThxAlot_1-1690019715651.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors