Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Table 1 :
I also have a date range filter which ranges from 2009 to current date. I want to create a measure to calculate the monthly costs based on the date range filter.
Example :
Total cost = Monthly costs * number of months.
If my date range is set at 1/1/2009 to 1/1/2022, the number of months should be calculated from contractstartdate from table1(not from the date range filter,2009).
so, 20,000 * Number of months(COntractstartdate(Nov2021) to current date(Nov 2022) = 12 months) = 240,000.
This value is then added to Table 2 Value based on contract number. Table 1 And table 2 are related through Contract Number.
Any help with creating this measure is much appreciated.
@shravanreddy133 , refer if these approaches can help
Between Dates - Dates between
Measure way
Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM
https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...
Tables way
https://amitchandak.medium.com/dax-get-all-dates-between-the-start-and-end-date-8f3dac4ff90b
https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |