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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 @Anonymous,
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 @Anonymous,
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!