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.
Hi,
I have a table and it has 10k rows data.
The data is calculated by KPI Title.
Hope if the Unit is [%] then calculate for average, if not then calculate for sum.
Pls help me to make measure.
Solved! Go to Solution.
Hello @jeongkim,
hope you are doing great,
i think you can use a switch ( true () , statement with selectedvalue
so example :
switch (
true() ,
selectedvalue(tablename[unit]) = "[%]" , average ( col ) ,
sum ( col )
)
hope this helps.
Hello @jeongkim,
hope you are doing great,
i think you can use a switch ( true () , statement with selectedvalue
so example :
switch (
true() ,
selectedvalue(tablename[unit]) = "[%]" , average ( col ) ,
sum ( col )
)
hope this helps.