Forum Discussion
Static Data in chart
- 4 years ago
Hi, sufiyanakhtar
Please try follow setps:
1. Add a new calculated table showing the top 10 items from all manufacturers and build a one-to-many relationship with the fact table.
Calculated table:
New Table = CALCULATETABLE ( DISTINCT ( 'Table'[Items] ), TOPN ( 10, SUMMARIZE ( 'Table', 'Table'[Items], "Total Value", SUM ( 'Table'[Value] ) ), [Total Value], DESC ) )2. Add a measure like below:
Total Value = SUM('Table'[Value])+03. Replace your original 'Axis' and 'Values' in bar chart
4. Show items with no data and filter out all blank values in the filter paneResult:
Please check my sample pbix for more details.
Best Regards,
Community Support Team _ Eason
sufiyanakhtar , Try something like
TOP N all =
var _1 = topn(10,ALL('Item'[item]),CALCULATE([net], REMOVEFILTERS(manufactures)),DESC)
return
CALCULATE([Net], _1,VALUES('Item'[item]))Dear Amit,
What exactly is [net]?? amitchandak
- v-easonf-msft4 years agoCommunity Support
Hi, sufiyanakhtar
Please try follow setps:
1. Add a new calculated table showing the top 10 items from all manufacturers and build a one-to-many relationship with the fact table.
Calculated table:
New Table = CALCULATETABLE ( DISTINCT ( 'Table'[Items] ), TOPN ( 10, SUMMARIZE ( 'Table', 'Table'[Items], "Total Value", SUM ( 'Table'[Value] ) ), [Total Value], DESC ) )2. Add a measure like below:
Total Value = SUM('Table'[Value])+03. Replace your original 'Axis' and 'Values' in bar chart
4. Show items with no data and filter out all blank values in the filter paneResult:
Please check my sample pbix for more details.
Best Regards,
Community Support Team _ Eason