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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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