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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Georgia_H
Helper I
Helper I

Need urgent help

Hello,

I have this use case and i need some input.

I need a logic to check on the same Billing Group Name that appeared twice for the same date: 3/14/2024. For this case, plc-gcp appeared twice but having 2 different values for Type namely FORECAST and ADJUSTED. I need to flag out as 1 for ADJUSTED and 0 for FORECAST. For the other Billing Group Name that occurs just once, I also need to flag out as 1, so that i can filter only 1 in my visuals. How to achieve this? TQVM.

Sample data:

Georgia_H_0-1707212972052.png

Expected Result:

Georgia_H_1-1707214002191.png

 

 

13 REPLIES 13
Ahmedx
Super User
Super User

you can upload it on 1 driver or google drive
or this

https://dropmefiles.com/

 

Ahmedx
Super User
Super User

pls try this

Screenshot_1.png

Thank you @Ahmedx for the suggested solution, however i still encounter error below: What could be the reason for this?

 

Georgia_H_0-1707268950416.png

 

in the SUMMARIZE function I have only 2 columns from one table, but it looks like you have 3 and one of them is from another table

SUMMARIZE(ALLSELECTED('Table'),
  'Table'[Billing Group Name], // it is column 1
'Table'[Type] // it is column 2
), 

Hi @Ahmedx 

Thanks for your swift response. I am using 2 columns as well from the same table. This is the real table name and column names. I just apply the same logic with the real data. That's all.

Georgia_H_0-1707273213041.png

 

maybe it’s because of the long column name, I can’t say for sure

Hi @Ahmedx I tested again on the syntax you've used on my newly created test Table.

It gives error. But your first working didnt show any error.

Georgia_H_0-1707276419331.png

 

maybe due to the power bi version
you can share a file with a measure with an error

Which version are you using? The version i am using is Version: 2.123.684.0 64-bit (November 2023). May i know how to upload PBIX file to you? Can send via Private Message?

The link is not working for me. I cannot share the PBIX file because i am on company device. Could you share with me your PBI version and the pbix?

 pls try

 

Hi @Ahmedx 

I can still see the error in your PBIX file. Could this be due to PBI Desktop version issue?

Georgia_H_0-1707365602475.png

 

here is my version from December 23

Screenshot_1.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.