Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
This is a follow-up to a question I posted yesterday. I'm trying to figure out how to achieve the following outcome. I want a calculated column or measure to recalculate the estimated revenue column based on what's in the revenue to date column (to avoid double counting). Ultimately I want to be able to slice on workgroup and sum up the adjusted total of the estimated revenue column. Any ideas? Thanks in advance!
Solved! Go to Solution.
Hi @jl20,
I modified the formula based on your sample data, you can try it if suitable for your requirement.
Dynamic Revenue =
var currProj=Max([MatterId])
var currRevenue= Max('Sample Data'[FeesBilled])
var totalEsti= SUMX(FILTER(ALL('Sample Data'),[MatterId]= currProj),[EstimatedFees])
var totalRevenue= SUMX(FILTER(ALL('Sample Data'),[MatterId]= currProj),[FeesBilled])
var groupCount=Calculate(DistinctCount('Sample Data'[WorkgroupName]),ALL('Sample Data'),'Sample Data'[MatterId]= currProj)
return
IF(groupCount>1,
if(currRevenue<>0, currRevenue/totalRevenue *totalEsti, Data'),[MatterId]= currProjAVERAGEX(FILTER(ALL('Sample ),[EstimatedFees])),Max([EstimatedFees]))
Regards,
Xiaoxin Sheng
Hi @jl20,
You can try to use below formula if it suitable for your requirement.
Sample measure:
Dynamic Revenue= var currProj=Max([Project #]) var currRevenue= Max(Table[Revenue to Date]) var totalEsti= SUMX(FILTER(ALL(Table),[Project #]= currProj),[Estimated Revenue]) var totalRevenue= SUMX(FILTER(ALL(Table),[Project #]=currProj),[Revenue to Date]) var groupCount=Calculate(DistinctCount(Table[Workgroup]),Table[Project #]= currProj) return IF(groupCount>1, if(currRevenue<>0, currRevenue/totalRevenue *totalEsti,AVERAGEX(FILTER(ALL(Table),[Project #]= currProj),[Revenue to Date])),Max(Estimated Revenue]))
If above is not help, please share some sample data to test.
Regards,
Xiaoxin Sheng
That seemed to give me some weird results that didn't make much sense. How can I attach an excel file with sample data?
It looks like I am restricted from sharing on 1dv outside my organization. Is there another service I can use to share?
EDIT: Try this link:
Hi @jl20,
I can't reach to your link, I think you can also try to use google drive.
Share a document using SharePoint or OneDrive
Regards,
Xiaoxin Sheng
Hi @jl20,
I modified the formula based on your sample data, you can try it if suitable for your requirement.
Dynamic Revenue =
var currProj=Max([MatterId])
var currRevenue= Max('Sample Data'[FeesBilled])
var totalEsti= SUMX(FILTER(ALL('Sample Data'),[MatterId]= currProj),[EstimatedFees])
var totalRevenue= SUMX(FILTER(ALL('Sample Data'),[MatterId]= currProj),[FeesBilled])
var groupCount=Calculate(DistinctCount('Sample Data'[WorkgroupName]),ALL('Sample Data'),'Sample Data'[MatterId]= currProj)
return
IF(groupCount>1,
if(currRevenue<>0, currRevenue/totalRevenue *totalEsti, Data'),[MatterId]= currProjAVERAGEX(FILTER(ALL('Sample ),[EstimatedFees])),Max([EstimatedFees]))
Regards,
Xiaoxin Sheng
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 65 | |
| 31 | |
| 26 | |
| 26 |