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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Cypher294
Frequent Visitor

Tickets per month of a half year view

HI,

 

I've got the following situation which I can not handle currently:

 

 stabi.JPG

 

For visualization a matrix was used.

 

The first column shows an affected service and the next ones the count of incidents within this service.

 

The service and the date are attributes for each incident within the datasource.

e.g. in 2017 10 Incidents with the category basis services were created.

 

HJ means half year which was mapped based on the month of incident occurance.

 

But the issue is that I do not want to show the absolute number of Incidents within the first half ( JAN-JUN ) of the year 2017 ( 10 which is pretty easy because of it just counts the unique incidents IDs )

I've want to calculate the average number of Incidents per month within the first half of the year 2017 ( 10 / 6 = 1,67 or another example for ECM services within 1. half 2017 would be 5 / 6 = 0,83 tickets per month within the first half of 2017 ) but the column needs to be on this half year view not on a monthly basis.

 

I've already tested some quick measures but the results were not correct.

 

Ok the short summary is that I've want to calculate the average number of tickets per month within a table which shows timeframes on a half year basis.

 

Maybe someone has an idea to solve this.

 

Thanks

5 REPLIES 5
Cypher294
Frequent Visitor

Sample Data

 

OK here are some sample Data excel based. originally the data would be in a SQL database.

 

 

Cypher294
Frequent Visitor

HI,

 

sorry I'Ve just tried to find out how to upload an excel file with some sample data but could not find the option how to attach to a comment. Could just add videos or photos.

HI @Cypher294,

 

Please upload your sample file to google drive or onedrive, and share link here.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
v-shex-msft
Community Support
Community Support

Hi @Cypher294,

 

Maybe you can try to use below formula if it works for your scenario.

Sample =
IF (
    ISFILTERED ( Table[HJ] ),
    DIVIDE (
        CALCULATE ( COUNT ( Table[incidents] ), VALUES ( Table[Service] ) ),
        6,
        -1
    )
)

 

If above not help, please share some sample data to test.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.