Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
The above matrix is how the original one looks like. I would like to display only quantity sold columns and total current inventory column but hide all current inventory columns by date. I would like to display only total current inventory.
Below matrix is how i want it to be looked like.
I tried using *word wrap* from *column headers* to hide all current inventory columns except the total one. However, if i export data, it will show all current inventory columns by date. Furthermore, if i expand all down one level in the hierarchy to month from quarter, i have to manually hide curren inventory columns... ALSO, the below matrix size looks ugly compared to upper one.
Hi @Anonymous ,
Sorry for that if you put the Qty sold and inventory in Values, Matrix table cannot show the Total only, it will show the value in each column.
Maybe you can use the one matrix table cover another matrix table.
If you have any question, please kindly ask here and we will try to resolve it.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
You can create measure like this.
_Amount = IF(HASONEVALUE('Date'[Quarter]),SUM(Qty[Qty]),SUM(Qty[Amount]))
This will return Qty when you put it in Quarter otherwise it will show Amount if more than 1 quarters are selected....
you can replace it with your columns to check the results.
Proud to be a Super User!
Hi @Anonymous
Hiding a column is not an option.
You can create a measure to sum up the total and display.
Total_Sku_year = CALCULATE(sum(table[quantity_sold],Allexcept(table,table[sku],table[Year_from_date]))
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Regards,
Pranit
@Anonymous , I doubt there is an option to hide a column from the total. But you can make it blank using is filtered.
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |