Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I am needing to show total daily charge. I have manually calculated to show the results I am needing - on Jan 1, our total rental items billed = $400 but on Jan 4, it was only $100. What is the best way to calculate daily total? Appreciate any help. Thank you in advance.
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
total charge measure: =
VAR _t =
ADDCOLUMNS ( data, "@rentdays", DATEDIFF ( data[start], data[stop], DAY ) + 1 )
VAR _daiylycharge =
ADDCOLUMNS ( _t, "@dailycharge", DIVIDE ( data[total charge], [@rentdays] ) )
VAR _dailytable =
ADDCOLUMNS (
'calendar',
"@dailycharge",
SUMX (
FILTER (
_daiylycharge,
data[start] <= EARLIER ( 'calendar'[Date] )
&& data[stop] >= EARLIER ( 'calendar'[Date] )
),
[@dailycharge]
)
)
RETURN
SUMX ( _dailytable, [@dailycharge] )
hi @wotkara
I have used below tables
Inv
Chg
Calendar table
Measure
-----------------
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
total charge measure: =
VAR _t =
ADDCOLUMNS ( data, "@rentdays", DATEDIFF ( data[start], data[stop], DAY ) + 1 )
VAR _daiylycharge =
ADDCOLUMNS ( _t, "@dailycharge", DIVIDE ( data[total charge], [@rentdays] ) )
VAR _dailytable =
ADDCOLUMNS (
'calendar',
"@dailycharge",
SUMX (
FILTER (
_daiylycharge,
data[start] <= EARLIER ( 'calendar'[Date] )
&& data[stop] >= EARLIER ( 'calendar'[Date] )
),
[@dailycharge]
)
)
RETURN
SUMX ( _dailytable, [@dailycharge] )
Thank you so much! This worked. I greatly appreciate your help 🙂
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 12 | |
| 10 |