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
huynq
Frequent Visitor

How to work with total, means, std and filter.

Hi everyone, thanks for comming in advance.

I ran into a issue that I need to calculate the normal distribution but seems like means and stds were not calculated correctly
I have this dataset as an example. What I want to do is to bring the 300 to every row and use it to calculate my number. I have date filter too.  

huynq_0-1605237381842.png

 

Anyway, thanks for your helps in advance

 

Hugo.

4 REPLIES 4
huynq
Frequent Visitor

Hi @mahoneypat  thanks for your reply.

How can I filter the Month too. Ex: I just want to colllect data from Feb - Apr only. Ofcause the running average will change too.

To include/exclude specific months, you can use ALLSELECTED and a month slicer.  To get last three months or other similar calculation, you'll want to set up a Date table in your model with month and month number columns.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Avg All Months = CALCULATE(AVERAGE(Table[Salary]), ALLSELECTED(Table[Month]))

change ALL to ALLSELECTED, if using month slicer

mahoneypat
Employee
Employee

You need to use CALCULATE to remove the filter on the Month column like this

 

Avg All Months = CALCULATE(AVERAGE(Table[Salary]), ALL(Table[Month]))

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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