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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kohlivinayak
Resolver I
Resolver I

How to optimize my report ... ?

Hi BI Experts
 
I have a power bi in which i am creating ranking of my grouped data in measure as i want my ranking to be calculated with filters being applied. And then on the based of these ranking I am assigning them some alphabets.
 
When I did it with sample data its running fine but when I loaded data for 3 months its throwing out of space error or just does not load the visuals.
 
How to fix this ?
 
Measures Used :
Total Sales Running (%) =
var _tot_Sales = CALCULATE(SUM(SAP_AllSales[SalesSUM]),ALL(SAP_AllSales))
return
DIVIDE(
CALCULATE(
SUM(SAP_AllSales[SalesSUM]), FILTER(
ALL(SAP_AllSales),SAP_AllSales[SalesSUM] >= MIN(SAP_AllSales[SalesSUM]))
)
, _tot_Sales,0)
 
Rank Sales = SWITCH(TRUE(),
SAP_AllSales[Total Sales Running (%)]>= 0 && SAP_AllSales[Total Sales Running (%)] < 0.50, "H",
SAP_AllSales[Total Sales Running (%)] >= 0.50 && SAP_AllSales[Total Sales Running (%)] < 0.90 , "B",
SAP_AllSales[Total Sales Running (%)] >= 0.90 , "T","NA")
 
This is one set, I have a total of 3 Sets.
 
Thanks in advance.

1 REPLY 1
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @kohlivinayak,

Could you please share some sample data to have a test?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.