cancel
Showing results for
Did you mean:
New Member

## Matrix issues

Hello,

I'm new to Power BI and with that, I'm struggling with something basic, yet I believe simple. In a Matrix I created in PBI Desktop I managed to get the amount of incidents dispatched per analyst YTD by month. Now, Out of that calculation shown, I need to calculate the Dispatched Rate per month, per agent. I have tried about anything and I can't seem to get this working, any help you can give me?

This is the Matrix I managed to get done in PBI: (Total of Incidents Dispatched per Analyst per month):

And this is the table I have created in Excel with the Dispatched Rate calculation, for this, I used the following formula: =C3/NETWORKDAYS(\$C\$21,EOMONTH(\$C\$21,0)), where C3 makes reference to the total of the incidents dispatched per Analyst, divided by the Network days of the month in question:

Any thoughts will be appreciated

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team

## Re: Matrix issues

Hi @GReyes85 ,

Can you please more about your data structure and matrix fields to help clarify your scenario? It is hard to coding formula without any detail informations.

You can also try to use following measure formula if it works:

```Measure =
VAR currDate =
MAX ( Table[Date] )
RETURN
DIVIDE (
COUNT ( Table[Column] ),
COUNTROWS (
FILTER (
CALENDAR ( currDate, DATE ( YEAR ( currDate ), MONTH ( currDate ) + 1, 1 ) - 1 ),
WEEKDAY ( [Date], 2 ) <= 5
)
)
)
```

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

For learning resources/Release notes, please visit: | |
Community Support Team

## Re: Matrix issues

Hi @GReyes85 ,

Can you please more about your data structure and matrix fields to help clarify your scenario? It is hard to coding formula without any detail informations.

You can also try to use following measure formula if it works:

```Measure =
VAR currDate =
MAX ( Table[Date] )
RETURN
DIVIDE (
COUNT ( Table[Column] ),
COUNTROWS (
FILTER (
CALENDAR ( currDate, DATE ( YEAR ( currDate ), MONTH ( currDate ) + 1, 1 ) - 1 ),
WEEKDAY ( [Date], 2 ) <= 5
)
)
)
```

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

For learning resources/Release notes, please visit: | |

Announcements

#### Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

#### Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 47 members 1,169 guests
Recent signins: