Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi All,
I have the following measure:
test = SWITCH(TRUE(),
MAX(test[month])>=9&&MAX(test[month])<=12,"fall",
MAX(test[month])>=1&&MAX(test[month])<=3,"winter",
MAX(test[month])>=4&&MAX(test[month])<=6,"spring",
MAX(test[month])>=7&&MAX(test[month])<=8,"summer")
Currently it looks at the month number (i.e. "3" for March and outputs "winter", what I'd like however is it to output is a count per season to show the distribution of the seasons in the dataset.
For example my desired output would be
| Month Number | Count of occurrences of each season |
| fall | 5 |
| winter | 7 |
| spring | 9 |
| summer | 11 |
I can't have a calculated column here either as I will want to make this measure dynamic later on with the use of a slicer, can someone tell me if this is possible?
Solved! Go to Solution.
Hi @obriaincian
You can first add a table with season values in it. Just like below.
Then create the following measure to count the occurrences. [test] is your original measure.
Measure = COUNTX(FILTER(test,[test]=SELECTEDVALUE(Seasons[Season])),test[month])
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @obriaincian
You can first add a table with season values in it. Just like below.
Then create the following measure to count the occurrences. [test] is your original measure.
Measure = COUNTX(FILTER(test,[test]=SELECTEDVALUE(Seasons[Season])),test[month])
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
exactly what I was looking for, thanks
@obriaincian , You can create a table with these values and join that with a measure in filter using table or values/summarize in a new measure
refer to the example. In place of a numeric table, you need a text table
Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |