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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

adjusting quick measure

alifazal_0-1628628030258.png

Im using quick measure and want to make a small adjustment instead of IN i want to choose the whole table.. 

 

how do i go about doing that ?

 

Count of BICUST difference from 1, 10, 1000, 10002, 10005, 10006, 10008, 10009, 1002, 1003, or 10034 =
VAR __BASELINE_VALUE =
    CALCULATE(
        DISTINCTCOUNT('VBISALES (2)'[BICUST]),
        'VBISALES (2)'[BIITEM] IN {
            "1",
            "10",
            "1000",
            "10002",
            "10005",
            "10006",
            "10008",
            "10009",
            "1002",
            "1003",
            "10034"
        }
    )
VAR __MEASURE_VALUE = DISTINCTCOUNT('VBISALES (2)'[BICUST])
RETURN
    IF(NOT ISBLANK(__MEASURE_VALUE), __MEASURE_VALUE - __BASELINE_VALUE)
4 REPLIES 4
Anonymous
Not applicable

HI @Anonymous,

You can use all functions to extract the target table field values and compare them with your expressions:

Count of BICUST difference From Table =
VAR __BASELINE_VALUE =
    CALCULATE (
        DISTINCTCOUNT ( 'VBISALES (2)'[BICUST] ),
        'VBISALES (2)'[BIITEM] IN ALLSELECTED ( Table[Column] )
    )
VAR __MEASURE_VALUE =
    DISTINCTCOUNT ( 'VBISALES (2)'[BICUST] )
RETURN
    IF ( NOT ISBLANK ( __MEASURE_VALUE ), __MEASURE_VALUE - __BASELINE_VALUE )

Regards,

Xiaoxin Sheng

samdthompson
Memorable Member
Memorable Member

Hello, try making this measure:

 

DistinctBICUST=DISTINCTCOUNT('VBISALES (2)'[BICUST])

 

 

// if this is a solution please mark as such. Kudos always appreciated.
Anonymous
Not applicable

thanks for that suggestion, didnt work though. I remember trying that 

Are you able to describe whats not working about that? Its just the core part of the calculation without the filtering.

 

 

// if this is a solution please mark as such. Kudos always appreciated.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.