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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Want to check how many time product category present and put in count column bucket

Hi,

Need help in dymaic measure, please refresh screen shot.

 

PPK2698_0-1667742310107.png

 

1 ACCEPTED SOLUTION

you need to generate a dimension table without any relationships.

the table will have at least two columns, Name, such as "Bucket1","Bucket2",.... and Index, as 1,2,3....

then put the Name in the column area

create a measure like this

new measure=if(calculate(countrows(table),allselected(table[product],table[monthend]))=max(dimtable[index]),max(dimtable[index]))

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

daXtreme
Solution Sage
Solution Sage

Totally unclear. I don't think that without rephrasing this in an understandable manner you'll get any answers...

Anonymous
Not applicable

@daXtreme Thanks for reply,

I am facing issue in below dax

 

SUMMARIZE(Test,
Test[Product]
Test[MonthEnd],
Test[Category],
"Bucket 1",
"Bucket 2"
"Bucket 3"
)

 

I want logic of Bucket  1, 2, and 3 column which is mentioned in dax query and this should based on How Many "B" are present in category that count should go in that particular bucket.

and i am doing this code in DAX STUDIO

you need to generate a dimension table without any relationships.

the table will have at least two columns, Name, such as "Bucket1","Bucket2",.... and Index, as 1,2,3....

then put the Name in the column area

create a measure like this

new measure=if(calculate(countrows(table),allselected(table[product],table[monthend]))=max(dimtable[index]),max(dimtable[index]))

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.