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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
grmumford16
New Member

DAX Issue in Power BI Designer

Hi All,

 

This is a very specific question.  In Power BI Designer, I'm working with exam data where the column headers are different course titles along with the assignment (ex: ADAExam, ADAAssignment, etc).  Using DAX, I want to create a measure that will average an individual column (ADAExam) that filters out blank cells as well as the value 0.  I know I can get around blank cells using AVERAGEA, but I'm not positive I'm filtering around 0 properly.  What I have is:  CALCULATE(AVERAGEA(Table1[ADARes]), Table1[ADARes] <> 0)

Designer seems to accept that, but when I drag the measure out into the canvas, it gives a warning sign saying that it "cannot retrieve the data for this visualization."

 

Any help with the formula or insight as to why this is happening would be very helpful!

 

Thanks

3 REPLIES 3
ashishrj
Power Participant
Power Participant

Try changing the visualization type to a score card or table.

Unforunately I've already tried that and I've got the same message for each.

Is Table1[ADARes] formatted as a number?

Helpful resources

Announcements
March Fabric Community Update

Fabric Community Update - March 2024

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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.