The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi all,
I have 2 tables with the fields
The tables are connected via a vehicle table. I cannot connect the date table with the activities table.
I would like to sum the kilometers when the Kilometers(Date) > Activities(Finish Date) for Activity = 2.
Can you help me, please? What other information do you need?
How to Get Your Question Answered Quickly meaning, please add your work-in-progress Power BI Desktop file, and source data in Excel format.
Hii, @FelixB according to the information you have provided this formula should work if all the relationships are proper.
Formula =
CALCULATE(SUM('Kilometers'[Km on the date]),
'Kilometers'(Date) > 'Activities'(Finish Date) && 'Activities'(ActivityID) = "2")
Please let me know if this works or not, if it doesn't work please provide a sample data to work on which will make it easy for me to help.
The error message: The expression contains columns from multiple tables but only columns from a signle table can be used in a True/False expression that is used as a table filter expression.
Please provide a sample data. So that I can see what exactly is the problem.
I was not able to upldate example data but the solution is:
User | Count |
---|---|
80 | |
78 | |
37 | |
34 | |
31 |
User | Count |
---|---|
93 | |
81 | |
60 | |
49 | |
49 |