Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello Team,
I have two tables
Table a
Column
A
B
C
Table B
ColumnA sales
A 10
B 20
C 50
I am using Table A column in slicer
I wrote dax for this but if we select A in slicer then it is showing only 10 instead of 30
When I select B in slicer then it is showing 20 instead of 30.
Could you help me with dax like even if we select A Or B it should show 30 only not specific values under it.
Kindly help me
Solved! Go to Solution.
I such a case do not join these two tables
create a measure like
measure =
if("C" in values(Tablea[Column]), calculate(Sum(Tableb[Sales]),filter( Tableb, Tableb[ColumnA] = "C")) , calculate(Sum(Tableb[Sales]),filter( Tableb, Tableb[ColumnA] <> "C")) )
I such a case do not join these two tables
create a measure like
measure =
if("C" in values(Tablea[Column]), calculate(Sum(Tableb[Sales]),filter( Tableb, Tableb[ColumnA] = "C")) , calculate(Sum(Tableb[Sales]),filter( Tableb, Tableb[ColumnA] <> "C")) )