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,
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 |
---|---|
28 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |