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
xyzsam
Microsoft Employee
Microsoft Employee

Calculate difference of Count of Incidents, group by month.

Hey Everyone, i need help with below question

I have two tables 

xyzsam_0-1621249773322.png 

xyzsam_1-1621249802948.png


i want to calculate difference of count(AllIncidents) - count(ActionableTickets) per month basis. (for all months)
e.g
Desired Outcome: another table
Year       Month  Difference
2021       Jan        2003
2021       Feb       3615
2021       Mar       7369
2021       Apr        1628
2021       May       1947
.....           ......         ......

Can some one please help me on this ?

@amitchandak@Greg_Deckler 

 I would appreciate any input on this. Thanks

1 ACCEPTED SOLUTION
xyzsam
Microsoft Employee
Microsoft Employee

Thanks for the reply, but how would it calculate the difference between count(AllIncidents) - count(ActionableTickets) for each month

View solution in original post

2 REPLIES 2
CNENFRNL
Community Champion
Community Champion

A most straightforward solution is to simply merge these 2 table by columns Year&Month in Power Query, it's done.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

xyzsam
Microsoft Employee
Microsoft Employee

Thanks for the reply, but how would it calculate the difference between count(AllIncidents) - count(ActionableTickets) for each month

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.