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
I have placed a card in the dashboard where using average value. The value in the card displaying good when filetered on single value of year ,however it's showing different value when selecting 'ALL' . Seems like the average taking overall projects.
Year 2019 - Average -100% -Ok
Year 2020- Average -100% - Ok
Year All - Average -1157% -Not Ok ( it should show only 100%). How to filtered out the unselected values while calcuating the average value.
| Average | Project | Year |
| 100% | Project A | 2019 |
| 100% | Project A | 2020 |
| 100% | Project A | 2021 |
| 1157% |
Solved! Go to Solution.
Hi @Anonymous ,
Try the following formula:
Measure =
IF(
ISFILTERED('Table'[Year]),
[Average],
AVERAGEX(
ALLSELECTED('Table'[Year]),
[Average]
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
you can put i guess in the filter to deselect the blanks projects or years if this is what is causing the problem. Are you using a simple average formula, maybe you need to use one that is filtering the data based on a grouping?
Am using divide function to calucate the average formula.
Hi @Anonymous ,
Try the following formula:
Measure =
IF(
ISFILTERED('Table'[Year]),
[Average],
AVERAGEX(
ALLSELECTED('Table'[Year]),
[Average]
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |