Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Friends
I am new to power BI
I have two table as shown below. One for the weekly data and otherone for daily transactions. What I want is to make report in my power bi dash board to show weekly information with last column in my report to be based on data from the daily transation table. In that I want price multified by qty to be shown as Turnover in my weekly report. Kindly help me to solve my issue. Thank you
Solved! Go to Solution.
Hi @Upali63 ,
--1--
In Power Query, select your Daily Table query and go to the Add Column tab > Custom Column. Call it 'Turnover' and use the following calculation:
[Price] * [Qty]
--2--
Then create a calendar table in Power Query (many examples online) with a [WeekEndingDate] column. In PQ, you would create it like this:
Date.EndOfWeek([Date], Day.Friday)
Adjusting the 'Day.Friday' argument to the desired first day of the week.
--3--
Apply all to the data model and relate:
Calendar[Date] to WeeklyTable[W-End]
Calendar[Date] to DailyTable[Date]
--4--
Create a measure for your Turnover value:
_turnover = SUM(DailyTable[Turnover])
--5--
In a table visual, add these fields:
Calendar[WeekEndingDate]
WeeklyTable[All columns except [W-End] ]
...and add this measure:
[_turnover]
This should do what you want.
Pete
Proud to be a Datanaut!
Hi @Upali63 ,
--1--
In Power Query, select your Daily Table query and go to the Add Column tab > Custom Column. Call it 'Turnover' and use the following calculation:
[Price] * [Qty]
--2--
Then create a calendar table in Power Query (many examples online) with a [WeekEndingDate] column. In PQ, you would create it like this:
Date.EndOfWeek([Date], Day.Friday)
Adjusting the 'Day.Friday' argument to the desired first day of the week.
--3--
Apply all to the data model and relate:
Calendar[Date] to WeeklyTable[W-End]
Calendar[Date] to DailyTable[Date]
--4--
Create a measure for your Turnover value:
_turnover = SUM(DailyTable[Turnover])
--5--
In a table visual, add these fields:
Calendar[WeekEndingDate]
WeeklyTable[All columns except [W-End] ]
...and add this measure:
[_turnover]
This should do what you want.
Pete
Proud to be a Datanaut!
Thanks
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |