Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
syafiqsulaiman
Regular Visitor

undefined

Hi All,

 

I'm new here. hope everyone doing fine.

I have difficulty with Power BI.

As you can see from below table. There are two different project with different data budget based on discipline. I need to calculate the overall progress based on Discipline but I can't find the suitable formula to be used in Power BI.
Please give me your feedback about this.

syafiqsulaiman_0-1674014006330.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @syafiqsulaiman ,

 

Here are the steps you can follow:

1. Create measure.

Overall_Measure =
var _1=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])),[Overall])
var _2=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])),[Discipline Weightage])
return
_1 * _2
By Discipline min =
var _min=MINX(FILTER(ALLSELECTED('Table'),[Project]=MAX('Table'[Project])),[Discipline])
var _1=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])&&'Table'[Discipline]=_min),[Overall])
var _2=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])&&'Table'[Discipline]=_min),[Discipline Weightage])
return
_1 * _2
By Discipline max =
var _max=MAXX(FILTER(ALLSELECTED('Table'),[Project]=MAX('Table'[Project])),[Discipline])
var _1=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])&&'Table'[Discipline]= _max),[Overall])
var _2=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])&&'Table'[Discipline]= _max),[Discipline Weightage])
return
_1 * _2
Title all =
Var _select1=SELECTEDVALUE('Table'[Project])
var _selecr2=SELECTEDVALUE('Table'[Discipline])
return
_select1 &" "& "Overall Progress"
Title min =
MINX(FILTER(ALLSELECTED('Table'),[Project]=MAX('Table'[Project])),[Discipline])
Title max =
MAXX(FILTER(ALLSELECTED('Table'),[Project]=MAX('Table'[Project])),[Discipline])

2. Create three card diagrams for [Overall_Measure], [By discipline min], [By discipline max],

After placing [Title all], [Title min], [Title max] in the Title of the corresponding Card.

[Title all] -- [Overall_Measure]

[Title min] -- [By Discipline min]

[Title max] -- [By Discipline max]

Columns with [Title all] -- [Overall_Measure]:

Format – Title – Text – fx.

vyangliumsft_0-1674114997315.png

Enter Title text –Title .

Format style – Field value

What field should we base this on – [Title all]

vyangliumsft_1-1674114997317.png

Result:

vyangliumsft_2-1674114997320.png

3. Result:

vyangliumsft_3-1674114997322.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @syafiqsulaiman ,

 

Here are the steps you can follow:

1. Create measure.

Overall_Measure =
var _1=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])),[Overall])
var _2=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])),[Discipline Weightage])
return
_1 * _2
By Discipline min =
var _min=MINX(FILTER(ALLSELECTED('Table'),[Project]=MAX('Table'[Project])),[Discipline])
var _1=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])&&'Table'[Discipline]=_min),[Overall])
var _2=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])&&'Table'[Discipline]=_min),[Discipline Weightage])
return
_1 * _2
By Discipline max =
var _max=MAXX(FILTER(ALLSELECTED('Table'),[Project]=MAX('Table'[Project])),[Discipline])
var _1=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])&&'Table'[Discipline]= _max),[Overall])
var _2=SUMX(FILTER(ALL('Table'),'Table'[Project]=MAX('Table'[Project])&&'Table'[Discipline]= _max),[Discipline Weightage])
return
_1 * _2
Title all =
Var _select1=SELECTEDVALUE('Table'[Project])
var _selecr2=SELECTEDVALUE('Table'[Discipline])
return
_select1 &" "& "Overall Progress"
Title min =
MINX(FILTER(ALLSELECTED('Table'),[Project]=MAX('Table'[Project])),[Discipline])
Title max =
MAXX(FILTER(ALLSELECTED('Table'),[Project]=MAX('Table'[Project])),[Discipline])

2. Create three card diagrams for [Overall_Measure], [By discipline min], [By discipline max],

After placing [Title all], [Title min], [Title max] in the Title of the corresponding Card.

[Title all] -- [Overall_Measure]

[Title min] -- [By Discipline min]

[Title max] -- [By Discipline max]

Columns with [Title all] -- [Overall_Measure]:

Format – Title – Text – fx.

vyangliumsft_0-1674114997315.png

Enter Title text –Title .

Format style – Field value

What field should we base this on – [Title all]

vyangliumsft_1-1674114997317.png

Result:

vyangliumsft_2-1674114997320.png

3. Result:

vyangliumsft_3-1674114997322.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@syafiqsulaiman ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Sorry. 
I want to build a progress report which show the the overall progress for Kiko Project by Discipline. 
Each Discipline has their own weightage to be include into the calculation.
Basically the simple calculation will be like:-
Overall * Discipline weightage = Progress
But I have difficulty to filter out between Kiko and Lala Project.


I want to view the result using the card view just like the below attach.

syafiqsulaiman_0-1674022249199.png

ProjectAreaDateDisciplineDiscipline WeightageOverall
KikoAREA LINES - 4" 08-Dec-22Safety0.62.00%
KikoAREA LINES - 4" 08-Dec-22Safety0.62.00%
KikoAREA LINES - 3" 08-Dec-22Safety0.61.33%
KikoAREA LINES - 3" 08-Dec-22Safety0.61.33%
KikoTOPSIDE08-Dec-22Electrical0.41.25%
KikoTOPSIDE08-Dec-22Electrical0.41.25%
KikoJACKET08-Dec-22Electrical0.40.83%
KikoJACKET08-Dec-22Electrical0.40.83%
LalaAREA LINES - 4"07-Dec-22Process0.53.00%
LalaAREA LINES - 4"07-Dec-22Process0.53.00%
LalaAREA LINES - 3" 07-Dec-22Process0.52.00%
LalaAREA LINES - 3" 07-Dec-22Process0.52.00%
LalaTOPSIDE07-Dec-22Structural0.52.50%
LalaTOPSIDE07-Dec-22Structural0.52.50%
LalaJACKET07-Dec-22Structural0.52.50%
LalaJACKET07-Dec-22Structural0.52.50%

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.