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
Hello everyone! I would like some help with the following situation.
I have a filter of months and a card with percentages. When a month is selected, the card works perfectly and shows the percentage for the month.
However, when all or more than one month is selected, the card shows the total percentage sum or the sum of the selected months on the percentage card.
I would like that only when two or more months are selected, the card shows the average of the percentage column.
How can I do this? Thank you very much in advance! 😊
Solved! Go to Solution.
Hi @Anonymous
If the percentage is a column from the table, after adding it to the card visual, you can switch the aggregation type to Average by right-clicking on the column in Fields well and select Average. By default it selects Sum.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @Anonymous
If the percentage is a column from the table, after adding it to the card visual, you can switch the aggregation type to Average by right-clicking on the column in Fields well and select Average. By default it selects Sum.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
I would create a measure including var,
measure_card=
var month_count=distinctcount(dim_date[yearmonth])
return
if(month_count>1, calculate(average(table[Percentage]), blank())
Hi @Anonymous
What is the current dax code of the measure?
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 |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |