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
Anonymous
Not applicable

Need to display Row Sub Totals

rrrrrr.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi Team

 

ROUND(IF([MAX_DT]<=SELECTEDVALUE(RetailAudit_StockCount[StockCount_CreatedDate]),CALCULATE(SUMX(RetailAudit_StockCount,[Face_On]),
FILTER(RetailAudit_StockCount,[Face_On]>=0))),2)
 
When I use above formulae. I am getting required  column sub totals working fine ... but not display or wrong Row Sub Totals
please Help me
 
Thanks

 

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

Would you mind trying below formula?

Measure = var a = CALCULATE(SUM(RetailAudit_StockCount[Face_On]),FILTER(RetailAudit_StockCount,[Face_On]>=0)&&[MAX_DT]<=SELECTEDVALUE(RetailAudit_StockCount[StockCount_CreatedDate])
Return
Round(a,2)

If still not work, please kindly share your dummy pbix/simple worksheet.

 

Community Support Team _ Dina Ye
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
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

Your capture is not complete for us to generate the determinate result. based on your formula. I'd like to make some change:

column = ROUND(IF([MAX_DT]<=SELECTEDVALUE(RetailAudit_StockCount[StockCount_CreatedDate]),SUMX(FILTER(RetailAudit_StockCount,[Face_On]>=0),[Face_On]),
,2)

If your problem still exists, please share us your dummy pbix or simple data with clear logic.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

Thanks for your Reply

 

we are using live connection if max_ date then display Stock count 

we side create always messare only 

above measure working fine but didt display ROW total i think as per formula using DAX small restriction above please help

ROUND(IF([MAX_DT]<=SELECTEDVALUE(RetailAudit_StockCount[StockCount_CreatedDate]),CALCULATE(SUMX(RetailAudit_StockCount,[Face_On]),
FILTER(RetailAudit_StockCount,[Face_On]>=0))),2)

Hi @Anonymous 

 

Would you mind trying below formula?

Measure = var a = CALCULATE(SUM(RetailAudit_StockCount[Face_On]),FILTER(RetailAudit_StockCount,[Face_On]>=0)&&[MAX_DT]<=SELECTEDVALUE(RetailAudit_StockCount[StockCount_CreatedDate])
Return
Round(a,2)

If still not work, please kindly share your dummy pbix/simple worksheet.

 

Community Support Team _ Dina Ye
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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.