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
Power_Guy
Frequent Visitor

Dax is not working

Power_Guy_0-1729522814838.png

In this Actual field is  showing 'blank' but instead of showing blank
I wanted to return 0 so to achiveing this i created a dax but it is not working 
Actual = IF(
    Issues[Actual Receipt] = BLANK() || Issues[Actual Receipt] = 0,
    IF(
        Issues[Recommended Distribution] = BLANK(),
        0,
        Issues[Recommended Distribution]
    ),
    Issues[Actual Receipt]
)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Power_Guy 

 

Since I don't know what your data looks like, I tested it using simple data. When using the same DAX as yours an error was reported

 

A single value for column 'Actual Receipt' in table 'Issues' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

 

this is because this DAX formula handles multiple rows of data without specifying how to aggregate them. Use the SUM function to aggregate the data:

 

Actual = IF(
    SUM(Issues[Actual Receipt]) = BLANK() || SUM(Issues[Actual Receipt]) = 0,
    IF(
        SUM(Issues[Recommended Distribution]) = BLANK(),
        0,
        SUM(Issues[Recommended Distribution])
    ),
    SUM(Issues[Actual Receipt])
)

 

 

vxianjtanmsft_0-1729563986967.png

 

If this is not the problem you are experiencing, please provide some dummy data that maintains the same data structure and tell me how the fields used in your matrix visual are calculated.

 

 Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Power_Guy 

 

Since I don't know what your data looks like, I tested it using simple data. When using the same DAX as yours an error was reported

 

A single value for column 'Actual Receipt' in table 'Issues' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

 

this is because this DAX formula handles multiple rows of data without specifying how to aggregate them. Use the SUM function to aggregate the data:

 

Actual = IF(
    SUM(Issues[Actual Receipt]) = BLANK() || SUM(Issues[Actual Receipt]) = 0,
    IF(
        SUM(Issues[Recommended Distribution]) = BLANK(),
        0,
        SUM(Issues[Recommended Distribution])
    ),
    SUM(Issues[Actual Receipt])
)

 

 

vxianjtanmsft_0-1729563986967.png

 

If this is not the problem you are experiencing, please provide some dummy data that maintains the same data structure and tell me how the fields used in your matrix visual are calculated.

 

 Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Wilson_
Super User
Super User

Hello Power_Guy,

 

Try something like:

 

Actual = [Actual Receipt] + 0


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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.