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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Moyenne pondérée sur un mois

Bonjour, 

 

Je me permets de poster afin d'avoir votre aide sur un calcul que je n'arrive pas à faire. J'ai 3 variables : 

- Le nombre de sessions : pour chaque jour 

- Le nombre de sessions cumulé sur un mois à partir de la date choisie : somme des sessions de la date choisie jusqu'à la date M-1

- Le temps moyen par session : c'est la moyenne de temps pour chaque jour. 

J'aimerais pourvoir calculer la moyenne par sessions par mois, c'est-à-dire (nombre de sessions/nombre de sessions cumulées)*temps moyen par session. 

 

Je l'ai fais pour les semaines : 

Sniv_1-1655123139644.png

 

Cependant le calcul est trop complexe et j'aimerais savoir si vous aviez une idée afin de réaliser la même chose sur un mois. 

 

Merci d'avance pour vos réponse. 

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team _ kalyj

Anonymous
Not applicable

@v-yanjiang-msft No it's not, but thanks for your answer, the fact is that 'Google analytics'[Nombre de sessions cumuless par semaine] as always to be the same value (of the date we start the calculate), and not being dependant of the DATESINPERIOD.

v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, you can try to modify your formula to :

Measure =
SUMX (
    FILTER (
        ALL ( 'Google analytics' ),
        'Google analytics'[Date]
            IN DATESINPERIOD ( [Date], SELECTEDVALUE ( [Date] ), -1, MONTH )
    ),
    'Google analytics'[Nombre de sessions] / 'Google analytics'[Nombre de sessions cumuless par semaine] * 'Google analytics'[dureemoyenne par session]
)

Best Regards,
Community Support Team _ kalyj

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

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors