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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
NavaneethaRaju
Helper IV
Helper IV

Need date column or Measure based on condition.

Hello Everyone,

 

based on my requirement i need the date column based on this condition,

like Order Date> Missing Since date , please advice the measure to display the column like this. after that missing date, how many order has been placed, that count i have to find.

 

Please advice. I enclosed the images like my expected result.

 

NavaneethaRaju_0-1661170890499.png

 

Needed Result:

NavaneethaRaju_1-1661170919596.png

 

Please advice some measure for showing the count of orders after the missing since date.

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@NavaneethaRaju If I understand this correctly, perhaps somethinge like:

Order Count Column =
  VAR __MissingSince = [Consign Fact.Missing Since]
  VAR __Table = FILTER('Table',[Tag Fact.Order Date] >= __MissingSince)
RETURN
  COUNTROWS(__Table)

Order Count Measure =
  VAR __MissingSince = MAX([Consign Fact.Missing Since])
  VAR __Table = FILTER(ALLSELECTED('Table'_,[Tag Fact.Order Date] >= __MissingSince)
RETURN
  COUNTROWS(__Table)


Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler , 

Thanks for your earliest response.

the measure is creating duplicates and it showing total order count for that tag, not working with condition.

NavaneethaRaju_0-1661173401470.png

After using the measure its creating duplicates and order count was showing 5 in table but it should be 2:

NavaneethaRaju_1-1661173473094.png

 

 

I enclosed the sampledate.pbix file, please advice.

 

 

@NavaneethaRaju Do they need to be the same Tag ID? I feel like there is some missing information regarding the specific business rules for the calculation.

 

 



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler ,

No, i have to show only one record for each Tag ID like this. that would enough for me.

NavaneethaRaju_0-1661174402798.png

 

The relationship would be many to many between Tag and Consign table.
Please advice, if i bring the Missing Since date in Tag usage fact table that would solve the issue.???
And also i enclosed the Pbix file, that might help you more. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors