Forum Discussion
Matrix column grandtotal incorrect
Hi
My matrix column grand total is coming incoorect.
Attached is the pbix file with sample data. Can anybody suggest any solution for it.
dax used is :
Regards
Shilpi
Hi Anonymous
You can create an individual date table from the Sales table or create a date table directly. Keep this date table disconnected with the Sales table.
Then use this date table's date column in the slicer (or a table visual for filter) and in the databucketsvalue measure. The column total of the matrix will be correct then.
The row total is still incorrect, do you need to correct it?
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
3 Replies
- amitchandakSuper User
Anonymous , Change return like
sumx(addcolumns( summarize(Sheet1,Sheet1[Busniess Area],Sheet1[BP] ), "_1" ,
calculate(sum(Sheet1[amount]),
FILTER (
ALLEXCEPT(Sheet1,Sheet1[Busniess Area],Sheet1[BP]) ,
datediff(Sheet1[sales date],selectdatevalue,day)>= _min &&
datediff(Sheet1[sales date],selectdatevalue,day) <= _max
)
)),[_1])- AnonymousNot applicable
This dax is giving wrong calculations
- v-jingzhangCommunity Support
Hi Anonymous
You can create an individual date table from the Sales table or create a date table directly. Keep this date table disconnected with the Sales table.
Then use this date table's date column in the slicer (or a table visual for filter) and in the databucketsvalue measure. The column total of the matrix will be correct then.
The row total is still incorrect, do you need to correct it?
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.