Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Kavya123
Helper III
Helper III

Qlikview expression in DAX

Hi Everyone,

 

I am moving Qlikview reports to Power BI . Below is the expression used in Qlkiview

 

num(sum({<iIdConsortium1={52}>} Pick(No,p10_val1 ,p25_val1,median_val1,p75_val1,p90_val1))/if(ResponseType1 like '*%', 100, 1), ResponseType1).

 

I have to choose the Benchmark filter. If I select 25th then sum(p25_val1 ) should be displayed in my chart. Please help me to achieve this.

 

Kavya123_0-1611929342333.png

No, Name
1,10th
2,25th
3,50th
4,75th
5,90th

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Kavya123 ,

 

1. Create several measures and create a disconnected table to use as slicer.

You can refer to this blog:

https://www.fourmoo.com/2017/11/21/power-bi-using-a-slicer-to-show-different-measures/ 

 

2. Use the Tabular Editor to dynamically switch the measure.

Under external tools, select Tabular Editor. If you don't see these menu options in power bi desktop, you need to install the Tabular Editor first.

V-lianl-msft_2-1612331727629.pngV-lianl-msft_3-1612331734882.png

 

Right click the table, select create new, and then click calculation group.

V-lianl-msft_4-1612331744933.png

In calculation group, create a new calculated item. Right click calculation items and create a new one.

Use the DAX formula that created measure before to create calculation item and set the string format.

V-lianl-msft_0-1612332089537.png

We use this measure to dynamically select calculation items based on slicer.

V-lianl-msft_2-1612332135060.png

 

Sample .pbix

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Kavya123 ,

 

1. Create several measures and create a disconnected table to use as slicer.

You can refer to this blog:

https://www.fourmoo.com/2017/11/21/power-bi-using-a-slicer-to-show-different-measures/ 

 

2. Use the Tabular Editor to dynamically switch the measure.

Under external tools, select Tabular Editor. If you don't see these menu options in power bi desktop, you need to install the Tabular Editor first.

V-lianl-msft_2-1612331727629.pngV-lianl-msft_3-1612331734882.png

 

Right click the table, select create new, and then click calculation group.

V-lianl-msft_4-1612331744933.png

In calculation group, create a new calculated item. Right click calculation items and create a new one.

Use the DAX formula that created measure before to create calculation item and set the string format.

V-lianl-msft_0-1612332089537.png

We use this measure to dynamically select calculation items based on slicer.

V-lianl-msft_2-1612332135060.png

 

Sample .pbix

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

create a measure that is filtered on SELECTEDVALUE() of your Benchmarks slicer, or use Calculation Groups.

 

Warning: Do not attempt to translate QlikView formulas into DAX formulas. Re-implement the concept, not the implementation.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors