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, everyone.
I am facing the problem of displaying row subtotal value correctly.
In my data I have a hierarchy where there are outlet codes connected with a person or trade marketer. The goal is to calculate sales fact volume. The formula used is like this
Solved! Go to Solution.
Hi @Gyuzal0997 ,
Please have a try.
Select the only column in the table that has no duplicate values, such as a date column, or create an index column.
Then create a measure based on [sales fact].
var _b = SUMMARIZE('sales','sales'[date] or index column,"aaa",'sales'[sales fact])
return
IF(HASONEVALUE('sales'[date] or index column),'sales'[sales fact],SUMX(_b,[aaa]))
If I have misunderstood your meaning, please provide more details with screenshots.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Gyuzal0997 ,
Please have a try.
Select the only column in the table that has no duplicate values, such as a date column, or create an index column.
Then create a measure based on [sales fact].
var _b = SUMMARIZE('sales','sales'[date] or index column,"aaa",'sales'[sales fact])
return
IF(HASONEVALUE('sales'[date] or index column),'sales'[sales fact],SUMX(_b,[aaa]))
If I have misunderstood your meaning, please provide more details with screenshots.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Gyuzal0997 , You have force visual group by the context in the formula . I should be some common dimesion column
Sumx(Values(Table[Column]), IF ( DSDSalesData > 0, DSDSalesData, Alternative ) )
Use summarize if there are more than one column
refer if needed https://www.youtube.com/watch?v=ufHOOLdi_jk
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |