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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Margreet
Helper II
Helper II

DAX formula

Hi, I got a simple model only a date table and a table with Nr, StartDate, Enddate.

The date from datetable is connected to Startdate.

 

In the visualisatie I want to see a 1 in every quarter from start to end date.

For example nr 1 with startdate 1-2-2021 and enddate 1-8-2022. What for formula in Dax works?

 

Thank for reaction.

 I want to see this:

Margreet_0-1668548896989.png

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Margreet,

It seems like a common multiple date fields analysis requirement, you can take look at the following blog start date end date part if it helps:

Before You Post, Read This 

In addition, you can also try to create a calculated table to expand these date ranges and use it as bridge to mapping raw table records:

Solved: Spread revenue across period based on start and en... - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Margreet,

It seems like a common multiple date fields analysis requirement, you can take look at the following blog start date end date part if it helps:

Before You Post, Read This 

In addition, you can also try to create a calculated table to expand these date ranges and use it as bridge to mapping raw table records:

Solved: Spread revenue across period based on start and en... - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Margreet , I think these blogs can help

 

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...

 

 

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello, I tried now this: 

Count_active_in_period = CALCULATE(COUNTx(FILTER('Table','Table'[StartDate]<=max(Datetable[Date]) && 'Table'[Enddate]>max(Datetable[Date])),('Table'[nr])),CROSSFILTER('Table'[StartDate],Datetable[Date],None))
 
Margreet_1-1668602896448.png

In 2021_Q2: I want to see 2; this is nr 1 and nr 3 are active in that period.

Hope some know what I can do in the formule, thanks a lot!

 

Margreet_2-1668602985729.png

 

Great, thank you! I will try working this.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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