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
abhi8569
Frequent Visitor

Need help in defining a measure

Hello All,

 

I have a data model which looks something like this:

Billing same as invoice .png

 

 

 

 

 

 

 

 

 

 

 

 

 

My requirement is to count the number of Invoice Number that satisfies following logical expression:
InvoiceDate(InvoiceMonth) == BillingDate(Billing Month) && InvoiceDate(InvoiceYear) == BillingDate(Billing Year)

 

I am not sure if that's even possible given how data is modelled. Kindly help me out in writing a DAX measure.

 

The Billing Date table contains three billing dates corresponding to previous, current and Next Billing date for each customer. Invoice Detail table contains informatrion of all the invoices generated for the customers.

 

Thank you!

 

1 REPLY 1
RMDNA
Solution Sage
Solution Sage

Hi @abhi8569 - the way you've drawn it, is the relationship between Customer Detail and Billing Date going in the wrong direction? I would imagine BillingDate is a date table with unique dates, so the 1: should be on that side.

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.