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
ashish_18
Helper III
Helper III

Column If condition not working for measure value.

HI Team, Can you please help me with below issue.

I am calculating measure NovForecast as below 

 

NovForecast = CALCULATE('data'[TotalForecast1],FILTER('data','data'[Index]=1))

TotalForecast1 is total of current cost column as calculate function only take measure value.

 

I am now creating column  as BRMain  but NovForecast value is not getting displayed in column . I am creating column BRMain as below 

BRMain = IF('data'[Index] = 2, 'data'[NovForecast], 'data'[brCCC])

Sample data is as below.

IndexMonthFI NameSum of Current CostRunway by CF MAINSum of BRMainNovForecast
1NovCCC$218,2282819358253132218228
1NovBBB$3,536441286394013536
1NovAAA$210,935208551078058210935
2DecCCC$159,4002659958  
2DecBBB$3,097438189  
2DecAAA$109,7131975797  
3JanCCC$190,6452469313190645 
3JanBBB$15,46442272515464 
3JanAAA$167,7271808070167727 
4FebCCC$183,1362286177183136 
4FebBBB$13,54140918413541 
4FebAAA$146,7211661349146721 
5MarCCC$193,9672092210193967 
5MarBBB$19,17639000819176 
5MarAAA$169,9001491449169900 
6AprCCC$229,7761862434229776 
6AprBBB$24,98436502424984 
6AprAAA$187,9311303518187931 
7MayCCC$283,9231578511283923 
7MayBBB$12,84435218012844 
7MayAAA$161,2761142242161276 
8JunCCC$257,7711320740257771 
8JunBBB$39,14731303339147 
8JunAAA$195,140947102195140 
9JulCCC$280,5601040180253132 
9JulBBB$57,26625576739401 
9JulAAA$215,75273135078058 
10AugCCC$336,528703652253132 
10AugBBB$73,25518251239401 
10AugAAA$243,13148821978058 
11SepCCC$337,392366260253132 
11SepBBB$88,4539405939401 
11SepAAA$231,54725667278058 
12OctCCC$366,2600253132 
12OctBBB$94,059039401 
12OctAAA$256,672078058 
2 REPLIES 2
HotChilli
Super User
Super User

I think you are telling us that [TotalForecast1] is a measure but it is not good practice to use a measure in a column. It is not advisable.

So re-write the BRMain column.

--

Also, are you writing a calculated column that gets the Nov values for December rather than writing a generic LastMonthValue column?

Hi @HotChilli  Thansk for your response. Can you plz advise how to write BRMain column for that IF condition


Will LastMonthValue work for me coz Dec is not my last month here..

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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.