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
Anonymous
Not applicable

Relating to Factless Facts

I have it working at the moment but I am not sure what problems will arise or performance issues I will be facing.  My goal is to calculate sales (which is daily) and have the ability to filter on dimensions that are tied to my snapshot factless fact table (one record for every month).  I attached a dummy model and code.  Looking for any suggestions for model change or dax enhancements.

Sales Amount :=
SUMX (
    SUMMARIZE (
        'SalesRep Snapshot',
        'Sales Rep Dim'[Sales Rep ID],
        DATE[Cal Year],
        DATE[Cal Month]
    ),
    SUMX ( RELATEDTABLE ( Sales ), Sales[Sales Amount] )
)

FactlessFactQuestion.jpg

5 REPLIES 5
avanderschilden
Resolver I
Resolver I

Hello,

 

Is it correct I see a many-to-one relationship between date and sales? Why is this not a many-to-one between sales and date?

 

Regards,

Adrian

Anonymous
Not applicable

Thanks for point that out, this is a mistake in a diagram I quickly put together.  Date and Sales has the same one to many as the factless fact.  Date(1) .... (M) Sales

Since you want to pass filters from the bottom 2 dimensions, they have to travel via an unactive relationship between date/sales or date/factles, so you have to use the function USERELATIONSHIP within CALCULATE. Besides that, you also need CROSSFILTER to enable filtering in both ways, since you can not default filter from factless fact into the date table.

Anonymous
Not applicable

I can propogate the filter context using extended tables.  I am looking for a ideas on implementing extended tables with different granularity. 

 

Good point on the bi direction filter on date, I've not considered that.

I am not sure which result you want to achieve. What do you mean by "different granularity"? Your sales are daily, and your date table too, so what is the "different granularity" you like to achieve?

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