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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
akash0800
Helper I
Helper I

undefined

Hi, have a scenario which I am not able to solve and need your assistance.

 

1. I have Measure which gives the total revenue. This is created in a revenue table.

2. Now I have NetworkDays per each month in a separate table.

3. Also, I have a Date Table.

 

I am not able to view the NetworkDays column while trying to write a measure.

 

 I created a new column in Date table and copied the NetworkDays.

 

Now, how do I write a measure using DAX and display the revenue per day in a month.

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @akash0800 ,

 

Here I suggest you to add a NetWorkday column in your calendar table. It should look like as below.

For reference: NETWORKDAYS function (DAX) - DAX | Microsoft Learn

In my sample, 2022/01/21 is a holiday, so there are 20 working days in Jan.

Networkday = NETWORKDAYS('Calendar'[Date],'Calendar'[Date],1,{DATE(2022,01,21)})

 Measure:

Measure = DIVIDE([Revenue],SUM('Calendar'[Networkday]))

RicoZhou_0-1672217735541.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

Thank you this worked.

As suggested. I added the network days to date table using Lookup function and then created a measure as suggested. It worked.

Thanks for the support. 

View solution in original post

4 REPLIES 4
Arul
Super User
Super User

@akash0800 ,

Could you provide sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Revenue: 84,822,567.54

NetworkDays: Jan- 20days, Feb- 20 days, Mar- 21 days..

Expected answer for Jan- 42,41,128.377

 

Anonymous
Not applicable

Hi @akash0800 ,

 

Here I suggest you to add a NetWorkday column in your calendar table. It should look like as below.

For reference: NETWORKDAYS function (DAX) - DAX | Microsoft Learn

In my sample, 2022/01/21 is a holiday, so there are 20 working days in Jan.

Networkday = NETWORKDAYS('Calendar'[Date],'Calendar'[Date],1,{DATE(2022,01,21)})

 Measure:

Measure = DIVIDE([Revenue],SUM('Calendar'[Networkday]))

RicoZhou_0-1672217735541.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Thank you this worked.

As suggested. I added the network days to date table using Lookup function and then created a measure as suggested. It worked.

Thanks for the support. 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors