Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I have an issue with a calculation and crating a measure
Tried diff formulas but not working so far. Any tip?
Now I want to create a difference between the monthly average vs Total (in this case 14.52)
July: 14.18 - 14.52
Aug: 14.81 - 14.52
etc...
Solved! Go to Solution.
Hi @romovaro ,
Based on the sample and description you provided, Please try code as below.
My Sample:
Total Average =
VAR _Day =
SUM ( 'LOA assignations'[LOA Sig date vs greenlight date] )
VAR CNT =
COUNTROWS ( 'LOA assignations' )
RETURN
_Day / CNT
LOA Month Comp =
AVERAGE ( 'LOA assignations'[LOA Sig date vs greenlight date] )
- SELECTEDVALUE ( 'LOA assignations'[Total Average] )
Result is as below.
If this reply still couldn't help resolve your issue, please feel free to ask us. Please share more details or share a sample pbix after removing sensitive data with us.
Best Regards,
Yulia Yan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @romovaro ,
Based on the sample and description you provided, Please try code as below.
My Sample:
Total Average =
VAR _Day =
SUM ( 'LOA assignations'[LOA Sig date vs greenlight date] )
VAR CNT =
COUNTROWS ( 'LOA assignations' )
RETURN
_Day / CNT
LOA Month Comp =
AVERAGE ( 'LOA assignations'[LOA Sig date vs greenlight date] )
- SELECTEDVALUE ( 'LOA assignations'[Total Average] )
Result is as below.
If this reply still couldn't help resolve your issue, please feel free to ask us. Please share more details or share a sample pbix after removing sensitive data with us.
Best Regards,
Yulia Yan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Share sample pbix file to help you.
Hi Ahmed, I will try later. Cannot do it in my company due to system restrictions
Avg Days is a Datediff formula to see the days btw the 2 dates.
Then I want to calculate the Average of this month - the Total Average (Average YTD)
thanks,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |