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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Ival
Regular Visitor

POWER BI : Question on Tabel/Queries and formula/measures

Hi,

 

I have 2 tables (Table 1 and Table 2)

I need the result as per below image 

Ival_0-1661415646408.png

 

1 REPLY 1
amitchandak
Super User
Super User

@Ival , First Append them in Power Query and then use group by in Power Query


Append : https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Group by

https://docs.microsoft.com/en-us/power-query/group-by

 

In DAX

 

Table = var _tab = Union(Table1,Table2)
return 
GROUPBY(_tab, [Date], [Item], "Total", SUMX(CURRENTGROUP(),[Value]))

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors