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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Measures showing blank where it expects data.

I have a table measure which I'm using in a Table Visualization. The Below DAX script shows it gets data from a Measure called TotalSales. When I put the TotalSales in a Card, it displays the correct value. But when I put them in a table, it gives me a blank value. This is just a sample. My intention is to union the selectColumns with diverse data and display it in a single table. 

Thanks.

 

 

 

 

PaxMetricsTable = 


VAR TotalSales = CALCULATE([TotalSales])



	VAR DataTempTable =
	DATATABLE(
	"Category",STRING,"Actuals",INTEGER,
	{{"none",0}}
	)
	VAR TempTable =

		SELECTCOLUMNS(
			DataTempTable,
			"Category", "Total Sales",
			"Actuals",TotalSales
		)


RETURN
    TempTable

 

 

 

 

 

 

anmuthu_0-1719582740524.png

 

7 REPLIES 7
Anonymous
Not applicable

Hi @lbendlin , THanks for the quick repsonse. I tried this method before ,but can't get what I needed. Please have a look at the below screenshot. 

anmuthu_1-1719803126605.png

 

 

 

I need 10 rows with 2 columns which Actuals and Budget. If I add all the values in the Matrix table, it would create long list of columns rather than the format that I require. Alternatively if I create a DAX table to create the Rows and Column that I require, I would loose the data as it is relying on the Slicers SelectedValue which doesn't get passed on to the DAX Table.

 

 

 

You didn't do the second step.  Show values on rows.

Anonymous
Not applicable

Is there an alternative solution to make this work. I have 20 different measures that I need to display in a table visualization. Each measure has different calculations. All the measures should be based on the Slicer selections like Date, Bussiness Unit & LocationCode. 

Add the measures to a Matrix visual's values, then select "show values on rows"

Anonymous
Not applicable

Hi @lbendlin , Sorry I meant a calculated DAX Table. 

You cannot (meaningfully) create a calculated column or calculated table from a measure as the calculated item is not supposed to be impacted by the filter context.

 

lbendlin
Super User
Super User

 

I have a table measure

 

There is no such thing*. Measures can only return scalar values.

 

* unless your table is a single row single column table.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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