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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
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
nandukrishnavs
Super User
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

View solution in original post

3 REPLIES 3
Tahreem24
Super User
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
amitchandak
Super User
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")

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
nandukrishnavs
Super User
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

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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