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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Dax for Region

Hello,

I am trying to execute below dax but not getting expected output.

 

I have region filter which has "NE, NW, S and Total. When i select "Total" then should show in my table visual

NE, NW,S and Total. Can someone please correct me.

 

SWITCH(V_PBI_DTA_SAM_Daily_Region[Region],"NE","NorthEast","NW","NorhtWest","S","South","Total","NE+NW+S",V_PBI_DTA_SAM_Daily_Region[Region])

 

Regards,

Venky

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous,

I'd like to suggest you take a look at the following blog to achieve a dynamic attribute report: (you may need to create a table that stores different granularity of the records to map to the fact table records)

Dynamic Attributes In A Power BI Report - P3 Adaptive
Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Anonymous , You need create a table like this and join with region table or region field

 

NE , NE , NorthEast

NW,NW ,NorhtWest

S,S ,South

 

NE , Total, NorthEast

NW,Total,NorhtWest

S,Total ,South

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
Anonymous
Not applicable

These are all in one Column?

NE , NE , NorthEast

NW,NW ,NorhtWest

S,S ,South

 

NE , Total, NorthEast

NW,Total,NorhtWest

S,Total ,South

ValtteriN
Super User
Super User

Hi, 

Could you add a picture of what you are trying to achieve?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

in my region filter i have the data like NE, NW, S and Total. When i select NE iam showing in my table Visual NorthEast and when i select NW from region filter showing in table visual as NorthWest and When i Select "Total" from filter should show in my table visual as NorthEast, NorthWest, South and Total. 

Anonymous
Not applicable

Region_Total.PNG

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.