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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
k1ko92
Regular Visitor

Problem many to many building dates

Hi Everyone,

 

I appreciate with you guys can help me with this DAX, I need to build a date (Ex : 20220213), using 2 tables. At column dax_YearMonthNo I need this date. Using this DAX Formula i could get YYYYMM (Image1) when i try to make a lookup to bring the earliest date from Calendar it fails, (already tried using Earlier)

 

Image 1

k1ko92_2-1645795362708.png

k1ko92_4-1645795498103.png

 

 

Image 2

k1ko92_3-1645795432684.png

k1ko92_5-1645795534057.png

 

 

 

 

Calendar

k1ko92_0-1645795122965.png

 

Table 1

k1ko92_1-1645795194392.png

 

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @k1ko92 

You have multiple 'lookupvalue' functions nested in your calculated columns, which is not good for troubleshooting.

You need to create separate calculated columns to test whether each 'lookupvalue'  is working correctly.

For further research, please provide sanitized sample data that fully covers your issue.

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@k1ko92 , for period you can get date like

 

date = date(left([period],4), right([period],2),1)

 

Or from calendar table

 

Minx(filter(calendar, calendar[Period] = table[Period]) , calendar[Date])

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Top Kudoed Authors