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,
well maybe its impossible but... but here my idea:
I have 2 Tables
layerID are divided i 2 types
what i´m looking for
well my idea is
=
IF layerID = 100 then calculate () // first aggreation
IF layerID = 200 then calculate () // second aggreation
...
ELSE calculate(sum(datasource[costs]), model[layerID])
can it work?
Solved! Go to Solution.
@Anonymous , a measure like
if(max(layerID) = 100, calculate (),calculate ())
or
sumx(summarize(table,table[layerID],"_1",if(max(layerID) = 100, calculate (),calculate ()) ),[_1])
@Anonymous , a measure like
if(max(layerID) = 100, calculate (),calculate ())
or
sumx(summarize(table,table[layerID],"_1",if(max(layerID) = 100, calculate (),calculate ()) ),[_1])
@amitchandak
first ofall thank You, but if i try...
😄
found my error: "..., Filter(Allselected(Table), Table(ID)=IdNr)..."
ty
Hi @Anonymous ,
Try using RELATED function.
https://docs.microsoft.com/en-us/dax/related-function-dax
and the the SWITCH function
Also,
share sample data of your tables and expected output to help you better.
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
18 | |
15 | |
7 | |
6 |