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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rom_A
Frequent Visitor

sum per time (month) using start and end date from table

 

Hi all,

I am very new to power bi and would appreciate some help. Have a table something like the one below

 

countStartDateEndDate
251/1/20213/31/2022
173/1/202112/31/2021
326/1/20216/1/2022
447/1/202110/31/2022
141/1/202212/31/2022
211/1/20213/31/2022
102/1/202212/31/2022

 

from this I would like to create a graph as shown below where a total sum from all rows that the month is in the range of the start and end date:

graph_image.jpg

 

thanks in advance

Rom

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Rom_A 
Take a look at these two Quick Measures as I think you want something like them.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Rom_A
Frequent Visitor

@Greg_Deckler

Hi

First I would like to express my appreciation for your very prompt reply. It seems that the Periodic-Billing is in line with what I need.

I do apologize for taking time to accept your solution, being very new to power BI it is taking me a while to implement. To start, I wasn’t aware the measure is based on a disconnected date table whereas my date table was connected, which produced ‘weird’ results. Which brings me to the question is there a solution where the tables are connected?  

Subsequently, I found if dates were missing in any rows the measure returned an error. Which brings me to the next question is there a solution where the rows with missing dates are not analyzed by the measure?

Thank you

Rom

Greg_Deckler
Super User
Super User

@Rom_A 
Take a look at these two Quick Measures as I think you want something like them.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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