The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi @UDMH ,
For the number of rows add a table with the folowing data:
Add the following measures:
Percent Rank = RANKX ( ALLSELECTED( Sales ), [Sales], , DESC )
Percent Running Total =
VAR __rank = [_Percent Rank]
RETURN
SUMX ( FILTER ( ALLSELECTED ( Sales ), [Percent Rank] <= __rank ), [Sales] )
Nº Items =
VAR __countBelowPercent = [Sales] * SELECTEDVALUE('Category'[Min])--store threshold percentabge
VAR __countBelowPercent1 = [Sales] * SELECTEDVALUE('Category'[MAX])
RETURN
COUNTX (
Sales,
IF ( [_Percent Running Total] >= __countBelowPercent && [_Percent Running Total] <= __countBelowPercent1 , 1 )
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @UDMH ,
Create the following measures:
Sales = SUM(Sales[Values])
Percentage = DIVIDE(
[Sales],
CALCULATE(
[Sales],
REMOVEFILTERS(Sales[Prod])
)
)
Running Sum Percentage = CALCULATE(
[Percentage],
WINDOW(
1,
ABS,
0,
REL,
SUMMARIZE(
ALLSELECTED(Sales),
Sales[Prod],
"SalesTotal", [Sales]
),
ORDERBY(
[SalesTotal],
DESC
)
)
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsBut, how this works based on year wise data
Hi @UDMH
What do you mean by a Year wise data?
In the example you gave there was only Product and Sales Amount. Can you please elaborate on the final result you need to achieve,
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @MFelix ,
Thank you for your support.
I have few more steps to bring the output.
After getting running sum percentage, I need to categorize this one under A, B, C.
The output should be,
Since this is a measure, the listing of category is not working.
And, also the sales data is huge, since we're using summarize in the measure, it keeps on loading and finally show error as visual exceeding the limits.
Whether there is any alternate way to the solution?
Hi @UDMH ,
For the number of rows add a table with the folowing data:
Add the following measures:
Percent Rank = RANKX ( ALLSELECTED( Sales ), [Sales], , DESC )
Percent Running Total =
VAR __rank = [_Percent Rank]
RETURN
SUMX ( FILTER ( ALLSELECTED ( Sales ), [Percent Rank] <= __rank ), [Sales] )
Nº Items =
VAR __countBelowPercent = [Sales] * SELECTEDVALUE('Category'[Min])--store threshold percentabge
VAR __countBelowPercent1 = [Sales] * SELECTEDVALUE('Category'[MAX])
RETURN
COUNTX (
Sales,
IF ( [_Percent Running Total] >= __countBelowPercent && [_Percent Running Total] <= __countBelowPercent1 , 1 )
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsUser | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
46 |