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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
seenai
Helper II
Helper II

Filter Issue and Lookup Table

Hi,

 

a) I found the measure not calculated properly when I apply YEAR Filter.

Both the TABLES with and without filters are shown in the Power BI File available at Link Rating File Folder 20200405 (File : MW_VendorRating.pbix).

I want to apply filter without affecting calculation.

 

b) In the same File, I have a measure Score_QPPM. It is made using IF function. I want to get the result using table Tbl_QPPM.

 

Please help me for these two points, if possible.

1 ACCEPTED SOLUTION

@seenai 

 

You may use RELATED to add a calculated column instead. To check DAX query, take a look at Examine report elements with Performance Analyzer.

Community Support Team _ Sam Zha
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

7 REPLIES 7
amitchandak
Super User
Super User

@seenai , I checked the file

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Hi

 

Please find below my request explained in details.

 

Request 1.jpgRequest 2.jpg

az38
Community Champion
Community Champion

Hi @seenai 

if i understand you correct you need smth like

Score_QPPM new = 
var _QPPM = [Calc_QPPM]
var _Score = CALCULATE(FIRSTNONBLANK(Tbl_QPPM[QPPM Score],1), Tbl_QPPM[Lower bound] < _QPPM, Tbl_QPPM[Upper Bound]>=_QPPM)
RETURN
IF(ISBLANK(_Score), 25, _Score)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 

Hi,

 

a) Thanks for your solution to my Request 2.👍

 

b) I need a solution for my Request 1 also. 

THe problem and expected result is as below : (Refer Power BI File available at Link Rating File Folder 20200405 (File : MW_VendorRating.pbix).

Req1.jpg

 

az38
Community Champion
Community Champion

@seenai 

I didn't dive deep in your calculation but try to place your statement into CALCULATE()

Calc_QPPM = CALCULATE((sum(T_MW_VR02[N.of Scraps (D)])+sum(T_MW_VR02[N.of Deviations (E)]))/sum(T_MW_VR02[Received Qty (F)])*1000000)

 Безымянный.png


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 

Hi

 

I would like to explain the problem further as below.

1st Measure Defined : Calc_QPPM (No problem till now)

2nd Measure : Score_QPPM_Lookup  (This is based on measure Calc_QPPM).

Now the problem is as below : (Updated Power BI File available at LinkRating File Folder 20200405 (File : MW_VendorRating.pbix).

Req200406.jpg

@seenai 

 

You may use RELATED to add a calculated column instead. To check DAX query, take a look at Examine report elements with Performance Analyzer.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Users online (3,557)