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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
22LACMT
Helper III
Helper III

Dax expression with filter

Does anyone know why this is not working? the math is working but it is not filtering the population by the 5 different dates. 

 

PDWAVG = CALCULATE(sumx('percent','percent'[Tier1Exposure] * 'percent'[PDGrade]) / sum('percent'[Tier1Exposure]), (FILTER( 'percent','percent'[ver]) ))
3 REPLIES 3
Anonymous
Not applicable

HI @22LACMT,

You can try to use the following measure formula if helps:

PDWAVG =
VAR summary =
    SUMMARIZE (
        ALLSELECTED ( 'percent' ),
        'percent'[ver],
        "rate", 'percent'[Tier1Exposure] * 'percent'[PDGrade]
    )
RETURN
    CALCULATE (
        SUMX ( summary, [rate] ) / SUM ( 'percent'[Tier1Exposure] ),
        ALLSELECTED ( 'percent' ),
        VALUES ( 'percent'[ver] )
    )

If these also don't help, can you share a pbix or some dummy data that keep the raw data structure with expected results? They should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Thank you for your help, I tried it as a measure and I got the below error message. 

22LACMT_0-1668525591512.png

 

Anonymous
Not applicable

Hi @22LACMT,

I think these fields may not include in the 'percent' table so Dax expression cannot invoke correspond fields values.

Can you please share a pbix or some dummy data that keep the raw data structure and dax formulas with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.