Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I need to implement many classifications based on different measures (YTD, MTD). I'm using a column because I need the flexibility to use it also as a filter in a slicer.
The classification works well if I use it as a filter or in a matrix as a value. I have problems when I put it in a rows and I want to show in the matrix also the YTD amount (where the classification is based).
Schema:
Through the link below you will find the example.
https://1drv.ms/u/s!AvVXApJDIqkLlz5Pwu-crnGBeFWv?e=2tNf6b
Thanks in advance for your support.
G.
Hi @Gab_1983 ,
You can try this measure instead:
REVENUES YTD =
VAR t =
ADDCOLUMNS (
SUMMARIZE (
Customer,
Period[Date],
Customer[Customer],
Customer[Class Revenues]
),
"REVENUE",
CALCULATE (
SUM ( FactAMT[AMT] ),
DATESYTD ( Period[Date] ),
ALLEXCEPT ( Customer, Customer[Customer] )
)
)
RETURN
SUMX ( t, [REVENUE] )
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Hi ERD,
thanks for your suggestion. Effectively in this way it works. So according to you is not the "Class column" the problem but the measure...The problem is that in reality I have a big data model that already includes a lot of measures (more than 200), change the structure of each measure is not feasible.
I'm trying to find a way to implement multiples classification (based on MTD, YTD figures) considering the selected date.
I know that maybe use a column is not the best approach (I already tried to do the classification with a measure (measure + parametric table with the segmentation) and it works well but then I have the limitation that a measure can't be used in rows or in a slicer) .
Please let me know if you have any other suggestions.
Thanks in advance
G.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |