This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi people 🙂
I have 2 tables and I would like to populate from one to the other.
I have on the first dates and for each date lots and lots of entries, in the second I have made a Distinct(date) and have calculated the average per date and now I would like to return to the first table and add a column that will put that average per date to the dates on that.
Does that make any sense to you?
Thanks 🙂
Solved! Go to Solution.
Hi @gpapasara,
Based on my test, you could use the formula in your table 1:
Clicks avg = CALCULATE(AVERAGE(Table1[Click]),FILTER('Table1','Table1'[Date]=EARLIER(Table1[Date])))Result:
If I mistunderstand you, could you please share me the pbix file and your desired result if possible?
Regards,
Daniel He
I do not see any use of second table here, may be Ihave not understand the requirement. But If you want to store DistinctDate and Avg of something, just create a measure(Average) in the First Table and pull the date and the measure into a visual it will aggregate the Measure for each date(no repetation in the date)
Hi @gpapasara,
Could you please post me some sample data and your desired result if possible?
Regards,
Daniel He
Thank you for your interest 🙂
You will find below the 2 tables that I have. The table 2 is calculated from table oneand what I would like to have now is one the first table next to each date the averages that I have calculated in the 2nd one so if I have the click averege fro example for the 1st January it will be 42.795 on every entry that is 01/01/2018 on the first table.
I don't know if I explained that clearly, if not please let me know and I will try again 🙂
Table1I
Table2
Hi @gpapasara,
Based on my test, you could use the formula in your table 1:
Clicks avg = CALCULATE(AVERAGE(Table1[Click]),FILTER('Table1','Table1'[Date]=EARLIER(Table1[Date])))Result:
If I mistunderstand you, could you please share me the pbix file and your desired result if possible?
Regards,
Daniel He
Thank you very much sir, that was a great help 🙂
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 41 | |
| 40 | |
| 36 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 72 | |
| 59 | |
| 34 | |
| 27 | |
| 25 |