Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

BIG HELP TO CREATE A MEASURE PLEASEEEEEEEEEEEEE!!!!!!

Who can help me to create a formula...Im going crazy trying to: (Data sample at the end)

 

I need to create a measure or calculated column that allows me to have a total column in a matrix like the picture:

 

My best try was:

 

 

Avg Total 2 = 
VAR Months =
    COUNTROWS ( ALLSELECTED ( PBI[Fecha] ) )
RETURN
    IF (
        ISINSCOPE ( PBI[Fecha] );
        SUM ( PBI[Total] );
        DIVIDE ( SUM ( PBI[Total] ); Months )
    )

 

 the result of this formula is almost good:

what I need this formula to do is Sum the ammount per day and divide by the ammount of days: I f we see in the example first row it sums 5 and divide for the ammount of days in sight (18) and I get 0,28 (First Row) and thats correct!!!. But I need the same but taking the weekends and holidays out: 

 

Anybody could help me out please!!! I would be so happy!!!

 

this is my table sample:

 

 

https://www.dropbox.com/s/7jtgn0e65ongubv/BI%20VISITAS%20DEMO%20forum.pbix?dl=0 

6 Replies