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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Emerald70
Frequent Visitor

facing an issue adding measures in the table

QualifyTypeAmount
YActual2000
YForecast3000
NActual50000
NForecast10000

have a data like this 
and needed a below 4 measures to be added in the table,  but when iam adding all facing an error like "could not load data for the visual"  please help??

QNA = calculate( sum(Sheet1[Amount]), Sheet1[Qualify] = "N" && Sheet1[Type] = "Actual")
QNF = calculate( sum(Sheet1[Amount]), Sheet1[Qualify] = "N" && Sheet1[Type] = "Forecast")
QYA = calculate( sum(Sheet1[Amount]), Sheet1[Qualify] = "Y" && Sheet1[Type] = "Actual")
QYF = calculate( sum(Sheet1[Amount]), Sheet1[Qualify] = "Y" && Sheet1[Type] = "Forecast")
5 REPLIES 5
Anonymous
Not applicable

Hi @Emerald70 , hello Ashish_Mathur and Ritaf1983, thank you for your prompt reply!

 

I'm checking how the things are going on about this issue. Whether the answer helps you?

 

If you find any answer is helpful to you, please remember to accept it.

 

It will help others who meet the similar question in this forum.

 

Thank you for your understanding.

  

Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, ensure that the data type of the Amount column is Number.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Emerald70
Frequent Visitor

Try to keep 4 measures in a table and check with the same data

@Emerald70 

Ritaf1983_1-1726915779950.png

still seems ok.
I also attached a pbix
If my answer was helpful please give me a Kudos and accept as a Solution.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @Emerald70 
The formulas seem correct + work with the small table that you attachedRitaf1983_0-1726857603011.png

May be the problem is with the data model or something.
What is a data source?
Do you use an import mode or direct query?

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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