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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Column in expression can be change

Hi

 

I need dynamic column in this DAX using Live connection. eg:- In a table ,if i have selected column from sales table then will show sales amount data and If i have taken column from invoice table then will show invoice data in this below given DAX.

MTD = TOTALMTD(SUM(column),'Calendar'[date])

Thanks,
Varsri

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Currently, it doesn't support to just select the different columns to make it used in a measure/column.

 

Best Regards
Maggie

Anonymous
Not applicable

Hi  Juanli,

 

        Thanks for reply. but i want dynamic changes in that DAX expression. Suppose if i select YTD, MTD in table with Total Sales, then will show YTD,MTD value according to sales amount and when i select YTD , MTD with invoice sales then show the value according to invoice sales. 

 

YTDMTDTotal Sales  
 MTD = TOTALMTD(SUM(Total Sales),'Calendar'[date]) 

 

YTDMTDInvoice Sales
 MTD = TOTALMTD(SUM(Invoice Sales),'Calendar'[date]) 

 

Is it possible to create dynamic measure in live connection mode.

 

Thanks,

Varsri

Hi @Anonymous 

I'm afraid it is impossible.

You could create many measures instead.

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

When using live connetion, it doesn't support to create columns in Power BI.

You could create measures instead.

3.pnghttps://radacad.com/live-connection-when-power-bi-comes-hybrid

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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