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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Invoices Raised after end of Month

Hello, I have the below data in a table. I need to create a column in a matrix visual that shows the value of an invoice if the invoice was created after the end of the month. cih-date will be any date in a month but will not go over the last day of that month but the cih-printed date can go past the end of a month as we do not close that month till a later date the following month. In the example below we didn't close May 2017 billing till the 10th of June so line number 1 should flag up but line number 2 is fine

 

cih-invoicecih-datecih-printed
1111131/05/201706/06/2017
1111222/05/201722/05/2017

 

I hope this makes sense? TIA

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

Try:

 

Column = IF([cih-printed]>EOMONTH([cih-date],0),TRUE(),FALSE())

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

v-cherch-msft
Employee
Employee

Hi @Anonymous 

You may try to get a measure like below:

Measure =
IF ( MAX ( Table[cih-printed] ) > EOMONTH ( MAX ( Table[cih-date] ), 0 ), 1 )

Regards,

Community Support Team _ Cherie Chen
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

3 REPLIES 3
v-cherch-msft
Employee
Employee

Hi @Anonymous 

You may try to get a measure like below:

Measure =
IF ( MAX ( Table[cih-printed] ) > EOMONTH ( MAX ( Table[cih-date] ), 0 ), 1 )

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Try:

 

Column = IF([cih-printed]>EOMONTH([cih-date],0),TRUE(),FALSE())

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Brilliant, thanks so much @Greg_Deckler 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.