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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mannyjha7860
New Member

Dax for calculating the unutilized Intents according to the year month and week-wise.

Hi,
I need a Dax for calculating the unutilized Intents according to the year month and week-wise.

so if total intent is 19 and on the month of October if total intent used is 7 then I should get unutilized 12 intents (19 intent count-7 used intent =12 unutilized intent  )
below is the example table

uti.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @mannyjha7860 

 

Please check the following methods.

unutilized intents month = 
CALCULATE (
    19 - SUM ( 'Table'[intent utilized] ),
    FILTER ( 'Table', [date].[Month] = EARLIER ( 'Table'[date].[Month] ) )
)
weeknum = WEEKNUM([date],2)
unutilized intents week = 
CALCULATE (
    19 - SUM ( 'Table'[intent utilized] ),
    FILTER ( 'Table', [weeknum] = EARLIER ( 'Table'[weeknum] ) )
)

vzhangti_0-1642138805275.png

Is this the result you expected?

 

Best Regards,

Charlotte Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @mannyjha7860 

 

Please check the following methods.

unutilized intents month = 
CALCULATE (
    19 - SUM ( 'Table'[intent utilized] ),
    FILTER ( 'Table', [date].[Month] = EARLIER ( 'Table'[date].[Month] ) )
)
weeknum = WEEKNUM([date],2)
unutilized intents week = 
CALCULATE (
    19 - SUM ( 'Table'[intent utilized] ),
    FILTER ( 'Table', [weeknum] = EARLIER ( 'Table'[weeknum] ) )
)

vzhangti_0-1642138805275.png

Is this the result you expected?

 

Best Regards,

Charlotte Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@mannyjha7860 , Create a new column

 


new column =
var _month = eomonth([Date],0)
return
19 - sumx(filter(Table, eomonth([Date],0) =_month) ,[intent untlized])

 

 

or a new measure like

new measure =
var _month = eomonth(max(Table[Date]),0)
return
19 - sumx(filter(allselected(Table), eomonth(Table[Date],0) =_month) ,[intent untlized])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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