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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
eg1230
New Member

Get first date a value from another column exists

Hi,

I am trying to normalize a timeseries.

I made a simple example I think if I understand the  follwing problem I am closer to write the DAX by myself.

This is my data model: 

eg1230_0-1776950795291.png

I have a slicer on master_f and oen on master_b to select exactly one value.

 

This is my DAX: 

FirstDatef = VAR SelectedCat = SELECTEDVALUE(master_f[cat])
RETURN 
    CALCULATE(
        MIN(f[date]),
        REMOVEFILTERS(f[date]),
        f[cat] = SelectedCat
    )

 

I dont understand why FirstDatef "is grwoing" together with date when shown in a matix:

eg1230_1-1776950993391.png

My understanding is that all filters are removed, so the min date should alway be the same?!

1 ACCEPTED SOLUTION
FBergamaschi
Super User
Super User

Hi @eg1230 

there a couple of things that make the answer difficult

1 - you should use a calendar table as a dimension

2 - it seems to me you have a relationship between two facts, you should never connect facts between them but connect them through dimensions

3 - you seem to have the automatic date time active, it is a best practice to deactivate it (so you use a calendar table dimension)

 

Can you share the pbix so I fix a couple of things and maybe at the same time I solve the measure issue?

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

 

 

View solution in original post

3 REPLIES 3
v-echaithra
Community Support
Community Support

Hi @eg1230 ,

Thanks for reaching out to Microsoft Fabric Community.

Just wanted to check if the responses provided were helpful. If further assistance is needed, please reach out.

 

Also to assist better, could you share sample data or sample .pbix file without any sensitive information. You can upload your files to any cloud storage like OneDrive or GoogleDrive and paste the link here with appropriate permissions.

How to provide sample data in the Power BI Forum - Microsoft Fabric Community


Thank you.

 

pcoley
Solution Supplier
Solution Supplier

@eg1230 
1. Trying to understand the filter context: the dates field used in the rows of the matrix object comes from the b or the f table?
2. Can you have a date table with relationships (1-to-many) with both transactional tables (b and f)?
3. can you advoid the many-to-many bidirectional relationship between b and f?
4. which are the fields used in each relationship?




I hope this helps.
If so please Mark it as a solution.
Kudos are Welcome!
FBergamaschi
Super User
Super User

Hi @eg1230 

there a couple of things that make the answer difficult

1 - you should use a calendar table as a dimension

2 - it seems to me you have a relationship between two facts, you should never connect facts between them but connect them through dimensions

3 - you seem to have the automatic date time active, it is a best practice to deactivate it (so you use a calendar table dimension)

 

Can you share the pbix so I fix a couple of things and maybe at the same time I solve the measure issue?

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.