Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello! I have been struggling with this task for a while now and i decided to ask for help. I have table with estimated cost, project name, date and percentage that project will be won.
I would like to create 3 different measures in one line chart
One which shows estimated cost of 50% of all projects by date and highest percentage change
Another line chart which shows estimated cost for 75% of the projects by date and highest percentage change and third line chart which shows estimated cost for all projects by date
All columns are in one table. For example if we used example picture, the 50% estimate would show estimated cost of project a and project b, because they are 50% of all projects with higest percentage.
I hope i made sense with my reguest!
Solved! Go to Solution.
Hi, @NaukkaUKKO ;
You could create two measure as follows:
1.top 50%
Top50% =
IF( RANKX(ALL('Table'),CALCULATE( MAX([percentage change])),,DESC)<=CALCULATE(DISTINCTCOUNT([Project name]),ALL('Table'))/2,1,0)
then apply it into line chart filter.
2.top 75%
Top75% =
IF( RANKX(ALL('Table'),CALCULATE( MAX([percentage change])),,DESC)<=3*CALCULATE(DISTINCTCOUNT([Project name]),ALL('Table'))/4,1,0)
then apply it into line chart filter.
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @NaukkaUKKO ;
You could create two measure as follows:
1.top 50%
Top50% =
IF( RANKX(ALL('Table'),CALCULATE( MAX([percentage change])),,DESC)<=CALCULATE(DISTINCTCOUNT([Project name]),ALL('Table'))/2,1,0)
then apply it into line chart filter.
2.top 75%
Top75% =
IF( RANKX(ALL('Table'),CALCULATE( MAX([percentage change])),,DESC)<=3*CALCULATE(DISTINCTCOUNT([Project name]),ALL('Table'))/4,1,0)
then apply it into line chart filter.
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, try something like below:
SumOfTop50%Projects =
VAR vNumOfRows = countrows(table)
VAR vProjectsCost = calculate(sum(Estimated Cost))
Return
CALCULATE(
vProjectsCost,
TOPN(
vNumOfRows/2,
ALL(EstimatedCost),
vProjectsCost,
DESC)
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |