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
Sibrulotte
Helper III
Helper III

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 III
Helper III

 hoping for a taker on this 🙂

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.