The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
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
@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
These are all in one Column?
NE , NE , NorthEast
NW,NW ,NorhtWest
S,S ,South
NE , Total, NorthEast
NW,Total,NorhtWest
S,Total ,South
Hi,
Could you add a picture of what you are trying to achieve?
Proud to be a Super User!
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.
User | Count |
---|---|
25 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |