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

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.

Reply
rod_puente
Helper I
Helper I

Help with date segmenters and doc balances

Hi everyone!

 

Pls I need your help. I have the following table in PBI desktop:

rod_puente_4-1724270899933.png

 

 

I need to know how to place a measure in DAX that allows viewing documents with balances on a certain date.

 

For example, in the following box I select the date until 10/30/2023, therefore, documents 448 and 774 are shown with a balance, but I need document 446 not to be shown because it must be dynamic with the date.

 

rod_puente_5-1724270944236.png

 

Regards

Rodrigo Puente

 

 

 

 

1 ACCEPTED SOLUTION
Irwan
Super User
Super User

hello @rod_puente 

 

i assumed you want to remove 446 because the sum value is zero (value difference between 'Valor Doc' and 'Valor Abon').

 

Irwan_1-1724294118249.png

 

 

By that assumption, please check if this accomodate your need.

1. create a new measure with following DAX.

Sum = 
var _Doc = SELECTEDVALUE('Table'[Doc])
Return
SUMX(
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Doc]=_Doc
    ),
    'Table'[Value 1]-'Table'[Value 2]
)
2. plot the measure into your table visual, then go to visual filter and filter only to show value is not zero
Irwan_3-1724294312687.png

3. if you dont want to show the measure in table visual, lock the visual filter (shown as red circle) then remove the measure from your column table visual

Irwan_4-1724294345110.png

 

Hope this will help.

Thank you.

View solution in original post

8 REPLIES 8
Irwan
Super User
Super User

hello @rod_puente 

 

i assumed you want to remove 446 because the sum value is zero (value difference between 'Valor Doc' and 'Valor Abon').

 

Irwan_1-1724294118249.png

 

 

By that assumption, please check if this accomodate your need.

1. create a new measure with following DAX.

Sum = 
var _Doc = SELECTEDVALUE('Table'[Doc])
Return
SUMX(
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Doc]=_Doc
    ),
    'Table'[Value 1]-'Table'[Value 2]
)
2. plot the measure into your table visual, then go to visual filter and filter only to show value is not zero
Irwan_3-1724294312687.png

3. if you dont want to show the measure in table visual, lock the visual filter (shown as red circle) then remove the measure from your column table visual

Irwan_4-1724294345110.png

 

Hope this will help.

Thank you.

Dear Irwan

 

I made the measurement in DAX that it tells me, but it doesn't sum up in the "sum" column, did I do something wrong?

 

rod_puente_0-1724347805511.png

 

rod_puente_1-1724347842930.png

 

Tkns, i hope your comments.

 

Rodrigo

 

Hello @rod_puente 

 

What are 'Valor Doc' and 'Valor Abon'? Are they measures or columns?

Is those two are measures, then the DAX need to be adjusted so it will look measure values instead of column value.

 

Thank you.

Hi Irwan

Tkns. I checked and by mistake I had added a column instead of a measure, now I have a measure and it works fine.

 

I have another question, how can I make it so that document 446 does not have the 1,000,000 repeated?

I modified the original data to see this case, because I am interested in the other thing, how can I apply a sum to the "sum" column?

 

rod_puente_0-1724444713679.png

 

Regards

Rodrigo Puente

Hello @rod_puente 

 

The DAX works like looking the value difference between 'Valor Doc' and 'Valor Abon' then it will be visually filtered out when the difference is zero and all value more than zero will be shown up.

 

That 1,000,000 is visible because the difference is not zero.

 

So what do you want by "not have the 1,000,000 repeated"? Do you want to remove it from visual or do you want to show it in single row (not shown in two rows) or any other goal/result you eant to achieve?

 

Thank you.

Dear @Irwan 

 

I understand, I want to show the 1,000,000 in a single row please.

 

Regards

Rodrigo P.

hello @rod_puente 

 

the purpose of measure is just to show one row of same value between 'Doc' and 'Abon'.

 

i dont know what are your goal is but those have different value. 2.035.364 is num 157 while 1.053.364 is num 190.

 

which one do you want to remove between them? how do you want to remove them? is it by date?

 

please explain what you need more.

if what you need is not related to your post, please provide another sample data and show your outcome result.

 

Thank you.

Anonymous
Not applicable

Hi @rod_puente ,

 

Sorry, I'm not sure if I understood you correctly.

Do you want to filter data whose date column is less than or equal to October 30, 2023?

I found that the slicer correctly filtered the data. Document 446 is displayed because the date is less than October 30, 2023, and this is the expected behavior.

If I misunderstood the question, could you clarify it?

 

Best Regards,

Wearsky

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.