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.
this visual could contain a year or two years etc
I want some DAX to find the average Fact per month. So if 3 months are displayed, the average over the 3 months
If more months are displayed, the average over all these months.
Any help would be appreciated. does this make sense?
Solved! Go to Solution.
Hi,
Does this measure work?
=Calculate([your measure],allselected(Calendar))
There should be a Calendar Table which should have a relationship with the Date column of the Data Table. To your visual, drag Year and Month from the Calendar Table.
Hope this helps.
Hi @DebbieE ,
Try this:
Avg = AVERAGEX ( ALLSELECTED ( Calendar ), [your measure] )
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Does this measure work?
=Calculate([your measure],allselected(Calendar))
There should be a Calendar Table which should have a relationship with the Date column of the Data Table. To your visual, drag Year and Month from the Calendar Table.
Hope this helps.
I think it may work but Im getting a different number to what I should be doing. i have added a flag to the card to specify a certain number of months
I think its more my calculations than Power BI though
thank you
Whom are you replying to? Hasn't my solution worked? If not, then share the link from where i can download your PBI file.
Should it not contains something regarding average?
Hi @DebbieE ,
Try this:
Avg = AVERAGEX ( ALLSELECTED ( Calendar ), [your measure] )
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This hasnt worked. i have 6 months and years in my selection
The numbers are 829 1045 55 1174 57 1058
This came out as 31.95 as the average, shouldnt it be 703 ?
Im not quite sure what the 31.95 is
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
93 | |
82 | |
70 | |
64 |
User | Count |
---|---|
118 | |
106 | |
93 | |
79 | |
72 |