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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

DAX creation from qlikview to power bi

Have a formula in qlickview which i need to repliate in power bi the formula is :
sum(total<column 1 , column 2 , column3 ,column 4 >if(column 5 <>'a',column 6,0))
need to creat the same in power bi 

1 ACCEPTED SOLUTION
PowerAuto82
Helper II
Helper II

Try the below

 

QVtoPBI =
	VAR  TotalCol1to4 	= CALCULATE( SUM('Table'[column1]+'Table'[column2]+'Table'[column3]+'Table'[column4])) 
	VAR  TotalCol5		= CALCULATE( SUM('Table'[column5]) 
	VAR  TotalCol6		= CALCULATE( SUM('Table'[column6]) 

	VAR CheckResult		= IF ( TotalCol1to4 > IF ( TotalCol5 <> 'a', TotalCol6 ), 0 )

	RETURN 

		CheckResult		

View solution in original post

3 REPLIES 3
PowerAuto82
Helper II
Helper II

Try the below

 

QVtoPBI =
	VAR  TotalCol1to4 	= CALCULATE( SUM('Table'[column1]+'Table'[column2]+'Table'[column3]+'Table'[column4])) 
	VAR  TotalCol5		= CALCULATE( SUM('Table'[column5]) 
	VAR  TotalCol6		= CALCULATE( SUM('Table'[column6]) 

	VAR CheckResult		= IF ( TotalCol1to4 > IF ( TotalCol5 <> 'a', TotalCol6 ), 0 )

	RETURN 

		CheckResult		
Anonymous
Not applicable

actually in the above formula is of qlikview in whih we are doing th sum of the column 6 if the olumn 5 condition is meet and the total has 4 column inside it 

ubharal_0-1664269683004.png

this is what the total is used in the formula not sure how to replicate this in power bi

 

amitchandak
Super User
Super User

@Anonymous , The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.


Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.