cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GReyes85
Frequent Visitor

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):

Matrix in PBI.jpg

 

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: 

Desired Calculation based on previous Matrix.jpg

Any thoughts will be appreciated 

 

Thanks! 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

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
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

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
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors