Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
gelsonwj
Helper I
Helper I

Create measure to group

I would like to create a measure to group only the varieties that belong to the group where harvest_name = 2021/2022

gelsonwj_0-1672838714153.png

 

5 REPLIES 5
FreemanZ
Super User
Super User

hi @gelsonwj 

Are you expecing a measure like this?
Count =CALCULATE(COUNT(TableName[variety_name]), TableName[harvest_name] = "2021/2022")

No, I would just like that when placing the measurement in the table, only the lines where "varieti_name" belongs to "harvest_name" = 2021/2022 would appear

hi @gelsonwj 

Why not do it simply with a slicer or filter pane setting?

amitchandak
Super User
Super User

@gelsonwj ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

 

segmentation can help

https://www.daxpatterns.com/dynamic-segmentation/
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization
https://youtu.be/CuczXPj0N-k

https://www.daxpatterns.com/static-segmentation/
https://www.poweredsolutions.co/2020/01/11/dax-vs-power-query-static-segmentation-in-power-bi-dax-po...


Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

i would like to have a table with columns "name", "farm_name" and "variety_name", but with the condition that the values ​​of "variety_name" are only where "harvest_name" = 2021/2022. I would like to have a measure that makes this grouping of selecting only the lines of the "variety_name" column where "harvest_name" = 2021/2022.

gelsonwj_0-1672840485600.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.