Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowI have many tables in my report out of which two tables are used in a chart. One is Date table which contains the date and another is order table which contains the Date, Time and number of orders received for every time.
These two tables were given with inactive relationship due to restrictions of having common tables. Now I have a date slicer connected to Date table and another chart which as having time in x axis number of orders received in y axis.
Now to make my chart to get filtered when changing the values in my date slicer. As I said, I have only inactive relationship.
Solved! Go to Solution.
Hi @Anonymous ,
Try:
Orders=
CALCULATE(
SUM(Sales[sales])
,USERELATIONSHIP('Date'[Date], Sales[ShipDate])
)
Or:
Orders=
CALCULATE(
SUM(Sales[sales])
,FILTER(Sales, Sales[ShipDate] in VALUES('Date'[Date]))
)
or
Orders= IF(MAX(Sales[ShipDate]) in VALUES('Date'[Date]),
SUM(Sales[sales]))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Try:
Orders=
CALCULATE(
SUM(Sales[sales])
,USERELATIONSHIP('Date'[Date], Sales[ShipDate])
)
Or:
Orders=
CALCULATE(
SUM(Sales[sales])
,FILTER(Sales, Sales[ShipDate] in VALUES('Date'[Date]))
)
or
Orders= IF(MAX(Sales[ShipDate]) in VALUES('Date'[Date]),
SUM(Sales[sales]))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
102 | |
70 | |
68 | |
54 | |
41 |
User | Count |
---|---|
153 | |
83 | |
65 | |
62 | |
61 |