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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
IEPMost
Helper III
Helper III

Help with DAX Command

Hi,

 

I have two columns [controller number] and [meter reader] in my Table.

 

Usually the values ​​of the column meter reader are continous. But if the value remains the same for a certain value in the Controller number column, the string "ERROR" should be appear in a new column. The main problem with my Command is that if a value from the meter reader column appears for two different values ​​from the controller number column, an "Error" is also returned as you can see in my example:

 

ERROR = IF(
COUNTROWS(FILTER('Table', 'Table'[controller number]=EARLIER('Table'[controller number])))>1,
IF(COUNTROWS(FILTER('Table','Table'[meter reader]=EARLIER('Table'[meter reader])))>1, "ERROR", BLANK()), BLANK())

 

controller numbermeter readererr
523650 
523703 
523723 
523723ERROR
523723ERROR
856230 
856742 
856742ERROR
13456900 
13457100 
1823470 
1823650ERROR
1823899 
 
I hope you know what I mean! Any help is much appreciated:-)
1 REPLY 1
amitchandak
Super User
Super User

@IEPMost , Please find the attached file after the signature. I added an index column and try to do that. But have one difference.

 

 

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.