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! Learn more

Reply
ABideImen___28
Frequent Visitor

Multiple Date in the fact table

Hello ,

I have a fact table containing the IDS of 3 date: start date, end date and collection date and dimension Dim_Time I want to make a matrix that displays the 3 dates and I can't do it, I tried this dax formula but it shows me empty columns:

CALCULATE( SELECTDVALUE(Dim_Time[Date] , USERELATIONSHIP( Fact[id_date_Finish] , Dim_Time [id_time])

I hope you can help me please.

 

8 REPLIES 8
Anonymous
Not applicable

Hi  @ABideImen___28 ,

You might consider creating a custom matrix with custom layouts for the columns of the matrix.

https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...

https://community.powerbi.com/t5/Desktop/Matrix-column-header-label-custom-group/td-p/1253196

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ABideImen___28
Frequent Visitor

@amitchandak  Can you help me please 😞 

ABideImen___28
Frequent Visitor

hi @Shishir22  thanks for replying me

Here is my first Fact Table that contains id_date_first and id_date_end : 

 

Fact 1.PNG

My second fact containt id_date_encaissement : 

 

Fact 2.PNG

here is the schema both fact tables are related to Dim_Time and only one relationship is active between them ( there is another dimensions that why there is so many relationship in the schema)  :

schema.PNG

And i tried this measure to retrieve the finished date :

dax.PNG

and here is what it shows  ( blank)  ( the first date is showen because the relationship is activet): 

ABideImen___28_0-1654164228947.png

I hope you help me

The reason you're having problems is because your datamodel is a mess 😞 
These 1-1 bidirectional filter between fact tables with screw you over big time, you don't get it right.

Consider wathing some best practive videos on datamodelling. I've used Avi Singh myself.

In you case you need to have a dimension table, that connects the etat and treso table on the ID-column

NickolajJessen_0-1654169242732.png

 

Hi @NickolajJessen  thanks for answering me

 

I remodeled my star model and I rectified the relationship between the fact table and the dimension by choosing a  one-way  and one to many relationship and the dax expression still does't work i hope you can suggest me another solution or dax expression 😞 

 

If you have an DIM ID table to conntect the two tables, you don't really need any dax.
Just drag and drop field onto a visual

NickolajJessen
Solution Sage
Solution Sage

NickolajJessen_0-1654167854180.png

 

NickolajJessen_1-1654167884848.png

 

Shishir22
Solution Sage
Solution Sage

Hello @ABideImen___28 ,


Can you please share sample data and expected result.

 

 

Cheers,
Shishir

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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