Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi guys
I'm sorry if my bad English confuse you. Thank you for comming.
I need a solution or any advices on this dataset
My Input:
Date Name Value
10/29/2020 A 1
11/02/2020 A 1
11/01/2020 B 2
11/02/2020 C 1
10/29/2020 A 3
My expected:
Date Name Value
10/29/2020 A 4
10/30/2020 A 0
11/01/2020 A 0
11/02/2020 A 1
10/29/2020 B 0
10/30/2020 B 0
11/01/2020 B 1
11/02/2020 B 0
10/29/2020 C 0
10/30/2020 C 0
11/01/2020 C 0
11/02/2020 C 1
Thanks in advance
Solved! Go to Solution.
Try this calculated table. You need a Date table in your data model.
DailyValue =
VAR vNames =
DISTINCT ( Table4[Name] )
VAR vStartDate =
MIN ( Table4[Date] )
VAR vEndDate =
MAX ( Table4[Date] )
VAR vDates =
CALCULATETABLE (
DISTINCT ( Dates[Date] ),
Dates[Date] >= vStartDate
&& Dates[Date] <= vEndDate
)
VAR vResult =
GENERATEALL (
vNames,
ADDCOLUMNS (
vDates,
"Value",
IF (
ISBLANK ( CALCULATE ( SUM ( Table4[Value] ) ) ),
0,
CALCULATE ( SUM ( Table4[Value] ) )
)
)
)
RETURN
vResult
Proud to be a Super User!
Try this calculated table. You need a Date table in your data model.
DailyValue =
VAR vNames =
DISTINCT ( Table4[Name] )
VAR vStartDate =
MIN ( Table4[Date] )
VAR vEndDate =
MAX ( Table4[Date] )
VAR vDates =
CALCULATETABLE (
DISTINCT ( Dates[Date] ),
Dates[Date] >= vStartDate
&& Dates[Date] <= vEndDate
)
VAR vResult =
GENERATEALL (
vNames,
ADDCOLUMNS (
vDates,
"Value",
IF (
ISBLANK ( CALCULATE ( SUM ( Table4[Value] ) ) ),
0,
CALCULATE ( SUM ( Table4[Value] ) )
)
)
)
RETURN
vResult
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
16 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |