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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Mirna
Frequent Visitor

Calculate Transactions

Hi,

I am having treouble creating a measure:

 

I have a table with the information below. I want to know the Total number of Cage installations that were completed (date completed) during the same month of the Job site Start date.

 

In the example below it will be 1 only.

There are 5 purchase order numbers in the month of May but only one cage install was completed during the month of May.

 

Can you suggest something?

 

Mirna_0-1628234990847.png

 

Thanks

M

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Here's one crude way without creating a Calendar Table.  Write a calculated column formula (column title is month-year check)

month-year check = format(Data[job site start date],"mmyy")=format(Data[Date completed],"mmyy")

Write this mesure and drag it to a card visual

Measure = calculate(sum(data[cage installation]),data[month-year check]=TRUE())

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

- add a calendar table to your data model

- create an active relationship to the Job Site Start Date

- create an inactive relationship to the Date Completed

- write a DAX measure with USERELATIONSHIP() to change the data model for that calculation.

Helpful resources

Announcements
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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.