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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Sibrulotte
Helper IV
Helper IV

Default date in slicer

hi, 

i've seen a few posts about default slicer values, but none that would help in my scenario.

 

I have two tables, one with a list of emailing sendouts, email, and the date it was sent.

the other is a transactions table with sales per email, the date of the transaction and the amount.

 

Sendout:

Email, Date, Sendout_name

 

Transactions:

Email, Date, amount

 

The key is done on emails, and emails only.

 

I'd like to show a sum of amount, but with transaction date slicer starting at the date of the sendout.

 

is that possible?

9 REPLIES 9
AllisonKennedy
Super User
Super User

Is it a 1 to many relationship? You can do it if so and with a Date table that only filters the SendoutDate and does not filter or have relationship to Transactions date.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

btw @AllisonKennedy , I'm very thankfull for the attention you brought to my post 🙂

I'm just to familiar with the solution you're refering to.

@Sibrulotte please can you share here a screenshot of your model view with relationships, and also click on Manage Relationships and share a screenshot of that so I can see what columns are related between each tables. Once I see what you have done so far, I can advise how I would change it.

You should have a date table in your data model too: https://excelwithallison.blogspot.com/2020/04/dimdate-what-why-and-how.html

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Hi, unfortunatly, it is not a one to many relation.

 

Envois _Qv contains many communications, and for every communication there are many recipient emails (NEP is the field in this case linking to my transactions).

And my transactions (Rentrées_de_fonds_FF) can have many transactions for the same email/NEP.

 

 

Sibrulotte_0-1601591258990.png

 

Too late for a follow up? 🙂

@AllisonKennedy  I guess many to many relationships won't allow for your solution to work?

It looks like you're doing reporting on many fact tables, so you need to connect them all using Dimension tables. In your case you'll need a DimNav that has each NAV exactly once. Use that to connect the two fact tables envois and reentre.

I'm not sure how advanced your knowledge of relationships in Power BI is, but I've written these posts to help explain why many to many should be avoided: https://excelwithallison.blogspot.com/2020/08/its-complicated-relationships-in-power.html

https://excelwithallison.blogspot.com/2020/08/its-complicated-relationships-in-power_11.html

https://excelwithallison.blogspot.com/2020/08/its-complicated-relationships-in-power_92.html

You will also need a DimDate table connected to all the tables with dates.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

it is a 1 to many relatinship.

Do you have any links to show me what you are refering to?

Sibrulotte
Helper IV
Helper IV

 hoping for a taker on this 🙂

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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
Top Kudoed Authors