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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors