cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Anonymous
Not applicable

## january month data

hiiii
i have this query to calculate percentage its woking correctly but i want to calculate this for january month data

30 divided by Count of count =
DIVIDE([30], COUNTA('Phone Call Data'[count]))
1 ACCEPTED SOLUTION
Super User

@Anonymous

Try something like this.

``````MeasureValue =
CALCULATE (
DIVIDE ( 30, COUNTA ( 'Phone Call Data'[count] ) ),
MONTH ( 'Phone Call Data'[Month] ) = 1 // or 'Phone Call Data'[Month]="January"
)``````

Regards,
Nandu Krishna

3 REPLIES 3
Super User

@Anonymous ,

Try a below DAX:

CALCULATE(DIVIDE([30], COUNTA('Phone Call Data'[count])),FILTER(DateTable,MONTH(DateTable[DateColumn])=1))

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Super User

@Anonymous , based on date format you put a filter

//Jan this year with date

calculate(
DIVIDE([30], COUNTA('Phone Call Data'[count])), eomonth('Phone Call Data'[Date],0)=eomonth(date(year(today()),1,1),0))

calculate(
DIVIDE([30], COUNTA('Phone Call Data'[count])), 'Phone Call Data'[Month] =1)

calculate(
DIVIDE([30], COUNTA('Phone Call Data'[count])), format('Phone Call Data'[Date],"mmm") ="Jan")

calculate(
DIVIDE([30], COUNTA('Phone Call Data'[count])), format('Phone Call Data'[Date],"mmm-yyyy") ="Jan-2020")

calculate(
DIVIDE([30], COUNTA('Phone Call Data'[count])), 'Phone Call Data'[Month Name] ="January")

Super User

@Anonymous

Try something like this.

``````MeasureValue =
CALCULATE (
DIVIDE ( 30, COUNTA ( 'Phone Call Data'[count] ) ),
MONTH ( 'Phone Call Data'[Month] ) = 1 // or 'Phone Call Data'[Month]="January"
)``````

Regards,
Nandu Krishna

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

#### Power BI Monthly Update - July 2024

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

#### Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors