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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Enan
Helper I
Helper I

Help Need: Average count of Month along with criteria

Hi Experts,

 

I am using below measure to count the yesterday values based on the required criteria (Filter) which is working fine.

TC = CALCULATE (COUNT (FACT_noav[Date]),

FILTER(FACT_noav,FACT_noav[Rank]<>"CK"),FACT_noav[Date]-TODAY()-1,

FACT_noav(Main_Cat]="Sickness"

||FACT_noav[Main Cat]="Locp"

||FACT_noav[Main_Cat]-"Others"

||FACT_noav[Main_Cat]="SIDL"

 

Now i have additional requirment and i want to calculate the Average Monthly count based on the above criteria which in used in above measure.

Below data model for information.

Appreciate your guidance.

 

Model.jpg

DAX_1.jpeg

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share some data, explain the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
adudani
Memorable Member
Memorable Member

hi @Enan ,

 

try this
var existingoutput = IF( isblank(TC),0,TC)

var _avgmonthly =
Averagex( Values (DateTable[MonthColumn]),
existingoutput
)
return

_avgmonthly

 

 

essentially, wrap the measure in averagex over the values of the month, and calulcate the expression you need.

 

reference: (12) Calculate Average Per Day / Month / Year In Power BI Using DAX - YouTube

 

if this doesn't resolve the issue, please share sample input data removing sensitive information 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.