Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi Team,
We are trying to evaluate Totals for simple data set using DAX Expression and show them in Tooltips for our visuals. The DAX Seems to be giving correct result while looking at default PBI tooltip. But while looking at Smart Narrative Tooltip, the totals are returning different numbers for Multi-selection in Filters.
DataSet:
| Grade | Dept | Value |
| A | 100 | 1 |
| B | 100 | 4 |
| B | 101 | 1 |
| C | 100 | 2 |
| C | 101 | 4 |
| D | 100 | 1 |
| D | 101 | 1 |
| E | 100 | 5 |
| A | 102 | 2 |
| B | 102 | 3 |
| C | 102 | 4 |
| D | 102 | 5 |
| E | 102 | 6 |
DAX Expression to Calculate Totals:
Thanks,
Muthu
Hi Amit,
We have a slicer to be considered in the calculation. The above calculation will remove all filters from the context. Please help me with revised logic that considers selected Filters/slicers and display totals only based on selection.
Hi @mkasinathan1
This happens due to Auto-Exist Feature in Power Bi. You can find many artiles and videos about it. Here is one for your reference if you are aintersted AutoExist and Normalization - SQLBI
Long story short, use a dimention table to slice by Department. Please follow the following steps and arrached sample file.
Hi,
Is it possible to handle the issue using DAX expression instead of making changes to data model?
The reason i'm asking you this is because, we have plenty of slicers in our real time reports and we are in the verge of moving changes to Production. Making changes to data model at this phase would be difficult for us to re-validate all metrics/data points now.
Appreciate if you could help me with your expertise on this.
Adding a disconnected local single column table to your data model is not considered as "changing the data model". Changing the column in each slicer will take 5 seconds per slicer. Even if there is another way around it could be complex and you never know when and where other errors will appear.
Hi,
My initial thought is: would it work if you changed your totals calculation to be using some form of the "count" formula instead?
Hi,
When you mean some counts, can you please help me with the formula?
@mkasinathan1 , Try this in tooltip page
Totals = CALCULATE(SUM(Sheet1[Value]), REMOVEFILTERS(Sheet1))
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 39 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 34 | |
| 32 | |
| 29 |