Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
HI Experts
how could i consolidate and re write the following three meaure as a varibale as they are taking some time to compuate the output answer...
measure 1.
Solved! Go to Solution.
@Anonymous ,
Maybe the measure should be like below:
Cumulative Complaint Rate =
VAR Cumulative_Complaints =
CALCULATE (
[TotalComplaintswithTrends],
FILTER (
ALLSELECTED ( PMS_FINANCIAL_PDS ),
PMS_FINANCIAL_PDS[Month Start] <= MAX ( PMS_FINANCIAL_PDS[Month Start] )
)
)
VAR Cumulative_Sales =
CALCULATE (
[TotalSalesTrend],
FILTER (
ALLSELECTED ( PMS_TM1_SALES_VOLUME ),
[Month Start] <= MAX ( PMS_FINANCIAL_PDS[Month Start] )
)
)
RETURN
IF (
DIVIDE ( Cumulative_Complaints, Cumulative_Sales, 0 ) <> 0,
DIVIDE ( Cumulative_Complaints, Cumulative_Sales, 0 )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
Maybe the measure should be like below:
Cumulative Complaint Rate =
VAR Cumulative_Complaints =
CALCULATE (
[TotalComplaintswithTrends],
FILTER (
ALLSELECTED ( PMS_FINANCIAL_PDS ),
PMS_FINANCIAL_PDS[Month Start] <= MAX ( PMS_FINANCIAL_PDS[Month Start] )
)
)
VAR Cumulative_Sales =
CALCULATE (
[TotalSalesTrend],
FILTER (
ALLSELECTED ( PMS_TM1_SALES_VOLUME ),
[Month Start] <= MAX ( PMS_FINANCIAL_PDS[Month Start] )
)
)
RETURN
IF (
DIVIDE ( Cumulative_Complaints, Cumulative_Sales, 0 ) <> 0,
DIVIDE ( Cumulative_Complaints, Cumulative_Sales, 0 )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try
//Option 1
averagex(summarize(FILTER(
ALLSELECTED(PMS_FINANCIAL_PDS),
[Month Start] <= MAX(PMS_FINANCIAL_PDS[Month Start])
),"_1",[TotalComplaintswithTrends],"_2",[TotalSalesTrend]),divide([_1],[_2]))
//Option 2
averagex(summarize(calculatetable(PMS_FINANCIAL_PDS,FILTER(
ALLSELECTED(PMS_FINANCIAL_PDS),
[Month Start] <= MAX(PMS_FINANCIAL_PDS[Month Start])
)),"_1",[TotalComplaintswithTrends],"_2",[TotalSalesTrend]),divide([_1],[_2]))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |