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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
django
New Member

sumx with date range lookup

Hi I have an issue with my  report. I cannot share my actual data for privacy so I have created a mockup model to explain my issue
I have spent a lot of time on it but it is behond my skills and i cannot figure out a solution.


I have two table

one fact Table

SC1.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

And one Dimension Table

django_0-1623473359446.png

 

Here is my model connections

django_1-1623473458502.png

I have a many to many relationship between the two tables

 

Now what I want is to define a measure to be displayed in a matrice

django_2-1623473709320.png

This is the matrice and i want to add a new value column wich would be
The sum of orders * the Time expense
But... the time expense varies

I have a from date and a to date column in my dimension table

I need the correct value to match the date of order.

I have seen plenty of exemples where a calculated colum is created.
However my data set is much more complex than my mockup and I would need lots of calculated colums.

I need a measure definition.

Any help would be greatly appraciated..
I am a bit worried about this Many to many relationship, maybee my model is wrong all togeather

 

 

 

 

1 REPLY 1
django
New Member

I forgot to link the pbx file

Here it is

Link to mockup pbx file

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors