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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syedshah
New Member

Powerbi

I am trying to make a DAX formula and I am not able to do it so I want your help.
I have a table named customer and column customer_number.

In customer_number some numbers fall under categroty A and some under B I want to make a new col for A so I can access customer_number of area A and get their sales report. 
How can I achieve this from DAX formula for Powerbi live connected .

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @Syedshah ,

 

Has your problem been solved? If it is solved, please mark a reply which is helpful to you.

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.


Best Regards,
Winniz

v-kkf-msft
Community Support
Community Support

Hi @Syedshah ,

 

Assuming that the numbers 1, 2, 3, and 4 in the column belong to category A, then you can use the following measure as a visual-level filter.

 

Measure = COUNTROWS ( FILTER ( customer, customer[customer_number] in { 1, 2, 3, 4 } ) )

vkkfmsft_0-1658369095229.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors